Read and parse a NeXTSTEP property list file
GPL-3.0 License
Read and parse a NeXTSTEP property list file
Loads property list files that follow the NeXTSTEP plain text format. Also works with other file formats that use the same syntax, such as the .glyphs
files used for the Glyphs font editor.
npm install --save load-nextstep-plist
const LOAD_PLIST = require('load-nextstep-plist')
LOAD_PLIST('test.plist')
.then(data => {
console.log(data)
// => { foo: 'bar' }
})
Returns a promise for the parsed property list file.
Returns the parsed property list file.
const LOAD_PLIST = require('load-nextstep-plist')
console.log(LOAD_PLIST.sync('test.plist'))
// => { foo: 'bar' }
Parsing is accomplished using Chees nextstep-plist
module.
This module is modelled on Sindre Sorhuss load-json-file
.
This software is free to use, modify, and redistribute under a GNU General Public License.