{"id":15713103,"url":"https://github.com/delucis/write-nextstep-plist","last_synced_at":"2025-03-30T18:28:50.545Z","repository":{"id":57399826,"uuid":"130281210","full_name":"delucis/write-nextstep-plist","owner":"delucis","description":":floppy_disk: Stringify and write a NeXTSTEP property list atomically","archived":false,"fork":false,"pushed_at":"2019-06-16T21:55:11.000Z","size":175,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-18T14:43:46.819Z","etag":null,"topics":["nextstep","plist"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/delucis.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-04-19T22:59:33.000Z","updated_at":"2023-08-20T07:14:33.000Z","dependencies_parsed_at":"2022-09-26T17:01:12.597Z","dependency_job_id":null,"html_url":"https://github.com/delucis/write-nextstep-plist","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/delucis%2Fwrite-nextstep-plist","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/delucis%2Fwrite-nextstep-plist/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/delucis%2Fwrite-nextstep-plist/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/delucis%2Fwrite-nextstep-plist/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/delucis","download_url":"https://codeload.github.com/delucis/write-nextstep-plist/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246162100,"owners_count":20733351,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["nextstep","plist"],"created_at":"2024-10-03T21:21:21.525Z","updated_at":"2025-03-30T18:28:50.514Z","avatar_url":"https://github.com/delucis.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# write-nextstep-plist [![Build Status](https://travis-ci.org/delucis/write-nextstep-plist.svg?branch=master)](https://travis-ci.org/delucis/write-nextstep-plist) [![Coverage Status](https://coveralls.io/repos/github/delucis/write-nextstep-plist/badge.svg?branch=master)](https://coveralls.io/github/delucis/write-nextstep-plist?branch=master)\n\n\u003e Stringify and write a NeXTSTEP property list [atomically](https://github.com/npm/write-file-atomic)\n\nConverts 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\n**N.B.** The NeXTSTEP format is different from both the XML and JSON plist formats.\n\n\n## Install\n\n```\n$ npm install --save write-nextstep-plist\n```\n\n\n## Usage\n\n```js\nconst WRITE_PLIST = require('write-nextstep-plist')\n\nWRITE_PLIST('demo.plist', {demo: true}).then(() =\u003e {\n\tconsole.log('done')\n})\n```\n\n\n## API\n\n### writeNextstepPlist(filepath, data, [options])\n\nReturns a `Promise`.\n\n### writeNextstepPlist.sync(filepath, data, [options])\n\n```js\nconst WRITE_PLIST = require('write-nextstep-plist')\n\nWRITE_PLIST.sync('demo.plist', {demo: true})\nconsole.log('done')\n```\n\n#### options\n\nType: `Object`\n\n##### mode\n\nType: `number`\u003cbr\u003e\nDefault: `0o666`\n\n[Mode](https://en.wikipedia.org/wiki/File_system_permissions#Numeric_notation) used when writing the file.\n\n\n## See also\n\n- [load-nextstep-plist](https://github.com/delucis/load-nextstep-plist) - Read and parse a NeXTSTEP property list file\n\n## Acknowledgements\n\nStringifying is accomplished using Chee’s [`nextstep-plist`](https://www.npmjs.com/package/nextstep-plist) module.\n\nThis module is modelled on Sindre Sorhus’s [`write-json-file`](https://github.com/sindresorhus/write-json-file).\n\n## License\n\nThis software is free to use, modify, and redistribute under a [GNU General Public License](http://www.gnu.org/licenses/gpl-3.0.txt).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdelucis%2Fwrite-nextstep-plist","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdelucis%2Fwrite-nextstep-plist","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdelucis%2Fwrite-nextstep-plist/lists"}