Package Exports
- write-nextstep-plist
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (write-nextstep-plist) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
write-nextstep-plist

Stringify and write a NeXTSTEP property list atomically
Converts a Javascript object into a property list string in the NeXTSTEP “plain text” format and writes it to disk. Creates directories for you as needed.
N.B. The NeXTSTEP format is different from both the XML and JSON plist formats.
Install
$ npm install --save write-nextstep-plist
Usage
const WRITE_PLIST = require('write-nextstep-plist')
WRITE_PLIST('demo.plist', {demo: true}).then(() => {
console.log('done')
})
API
writeNextstepPlist(filepath, data, [options])
Returns a Promise
.
writeNextstepPlist.sync(filepath, data, [options])
const WRITE_PLIST = require('write-nextstep-plist')
WRITE_PLIST.sync('demo.plist', {demo: true})
console.log('done')
options
Type: Object
mode
Type: number
Default: 0o666
Mode used when writing the file.
See also
- load-nextstep-plist - Read and parse a NeXTSTEP property list file
Acknowledgements
Stringifying is accomplished using Chee’s nextstep-plist
module.
This module is modelled on Sindre Sorhus’s write-json-file
.
License
This software is free to use, modify, and redistribute under a GNU General Public License.