I have an old-style ASCII property list parser at https://github.com/brettz9/macOS-defaults/blob/openwith/PlistParser.js#LC1 which I think makes more sense to be integrated here. (Are you still maintaining?) Although it is recommended to use XML for input, output (such as from `defaults read`) may be in this old format. See https://github.com/brettz9/macOS-defaults/blob/openwith/test/parser.js#LC4 for tests.