diff --git a/README.md b/README.md index 0e6a367..15e894a 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,8 @@ -# NeXTStep plist parser +# NeXTStep plist parser and writer -parse NeXTStep style plists in node. these are not the xml style, but the older -NeXTStep style (a similar filetype is used in GNUStep, with extensions) +parse and generate NeXTStep style plists in node. these are not the xml style, +but the older NeXTStep style (a similar filetype is used in GNUStep, with +extensions) the only place i know of to still use them in macOS is `~/Library/KeyBindings/DefaultKeyBinding.dict` @@ -17,11 +18,15 @@ const plist = `{ "~f" = "moveWordForward:", "~b" = "moveWordBackward:" }` -const {parse} = require('nextstep-plist') -parse(plist) // {'~f': 'moveWordForward:', '~b': 'moveWordBackward:'} +const {parse, stringify} = require('nextstep-plist') +const js = parse(plist) // {'~f': 'moveWordForward:', '~b': 'moveWordBackward:'} +stringify(js) // '{ "~f" = "moveWordForward:"; "~b": "moveWordBackward":}' ``` ## todo * clean up this code * support `` syntax * support comments +* make the output prettier +* write tests for stringify +* tell @gnarf