Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including load-nextstep-plist with all npm packages installed. Try it out:

var loadNextstepPlist = require("load-nextstep-plist")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

load-nextstep-plist v1.0.3

Read and parse a NeXTSTEP property list file

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.

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free