npm

Join us for the upcoming webinar, "Enterprise JavaScript done right: the tools you love, the security you need."Sign up here »

load-nextstep-plist

1.0.3 • Public • Published

load-nextstep-plist Build Status Coverage Status

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.

Install

npm install --save load-nextstep-plist

Usage

const LOAD_PLIST = require('load-nextstep-plist')
 
LOAD_PLIST('test.plist')
    .then(data => {
        console.log(data)
        // => { foo: 'bar' }
    })

API

loadNextstepPlist(filepath)

Returns a promise for the parsed property list file.

loadNextstepPlist.sync(filepath)

Returns the parsed property list file.

const LOAD_PLIST = require('load-nextstep-plist')
 
console.log(LOAD_PLIST.sync('test.plist'))
// => { foo: 'bar' }

See also

Acknowledgements

Parsing is accomplished using Chee’s nextstep-plist module.

This module is modelled on Sindre Sorhus’s load-json-file.

License

This software is free to use, modify, and redistribute under a GNU General Public License.

install

npm i load-nextstep-plist

Downloadsweekly downloads

9

version

1.0.3

license

GPL-3.0

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability