https://github.com/delucis/load-nextstep-plist
:open_file_folder: Read and parse a NeXTSTEP property list file
https://github.com/delucis/load-nextstep-plist
nextstep plist
Last synced: 11 days ago
JSON representation
:open_file_folder: Read and parse a NeXTSTEP property list file
- Host: GitHub
- URL: https://github.com/delucis/load-nextstep-plist
- Owner: delucis
- License: gpl-3.0
- Created: 2018-04-19T20:25:00.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-06-16T21:30:39.000Z (almost 6 years ago)
- Last Synced: 2025-05-09T01:15:36.052Z (11 days ago)
- Topics: nextstep, plist
- Language: JavaScript
- Homepage:
- Size: 128 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# load-nextstep-plist [](https://travis-ci.org/delucis/load-nextstep-plist) [](https://coveralls.io/github/delucis/load-nextstep-plist?branch=master)
> 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](http://glyphsapp.com/) font editor.
## Install
```
npm install --save load-nextstep-plist
```## Usage
```js
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.
```js
const LOAD_PLIST = require('load-nextstep-plist')console.log(LOAD_PLIST.sync('test.plist'))
// => { foo: 'bar' }
```## See also
- [write-nextstep-plist](https://github.com/delucis/write-nextstep-plist) - Stringify and write a NeXTSTEP property list atomically
## Acknowledgements
Parsing is accomplished using Chee’s [`nextstep-plist`](https://www.npmjs.com/package/nextstep-plist) module.
This module is modelled on Sindre Sorhus’s [`load-json-file`](https://github.com/sindresorhus/load-json-file).
## License
This software is free to use, modify, and redistribute under a [GNU General Public License](http://www.gnu.org/licenses/gpl-3.0.txt).