{"_id":"stringify-package","_rev":"144819","name":"stringify-package","description":"stringifies npm-written json files","dist-tags":{"latest":"1.0.1"},"maintainers":[{"name":"fritzy","email":"fritzy@netflint.net"},{"name":"gar","email":""},{"name":"npm-cli-ops","email":""},{"name":"saquibkhan","email":""}],"time":{"modified":"2023-04-26T08:52:11.000Z","created":"2018-07-18T18:31:40.703Z","1.0.1":"2019-09-30T17:43:36.553Z","1.0.0":"2018-07-18T18:31:40.703Z"},"users":{},"author":{"name":"Kat Marchán","email":"kzm@zkat.tech"},"repository":{"type":"git","url":"git+https://github.com/npm/stringify-package.git"},"versions":{"1.0.1":{"name":"stringify-package","version":"1.0.1","description":"stringifies npm-written json files","main":"index.js","repository":{"type":"git","url":"git+https://github.com/npm/stringify-package.git"},"keywords":["npm","json","stringify","package.json"],"author":{"name":"Kat Marchán","email":"kzm@zkat.tech"},"license":"ISC","bugs":{"url":"https://github.com/npm/stringify-package/issues"},"homepage":"https://github.com/npm/stringify-package","scripts":{"prerelease":"npm t","release":"standard-version -s","postrelease":"npm publish","postpublish":"git push --follow-tags","pretest":"standard","test":"tap -J --coverage --100 test/*.js"},"devDependencies":{"standard":"11","standard-version":"4","tap":"12"},"gitHead":"4d78b2a3eed620c6b349550fa6fd99ac6c769167","_id":"stringify-package@1.0.1","_nodeVersion":"12.8.1","_npmVersion":"6.12.0-next.0","dist":{"shasum":"e5aa3643e7f74d0f28628b72f3dad5cecfc3ba85","size":2333,"noattachment":false,"key":"/stringify-package/-/stringify-package-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/stringify-package/download/stringify-package-1.0.1.tgz"},"maintainers":[{"name":"fritzy","email":"fritzy@netflint.net"},{"name":"gar","email":""},{"name":"npm-cli-ops","email":""},{"name":"saquibkhan","email":""}],"_npmUser":{"name":"isaacs","email":"i@izs.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/stringify-package_1.0.1_1569865416369_0.3656934459769263"},"_hasShrinkwrap":false,"publish_time":1569865416553,"_cnpm_publish_time":1569865416553,"deprecated":"This module is not used anymore, and has been replaced by @npmcli/package-json"},"1.0.0":{"name":"stringify-package","version":"1.0.0","description":"stringifies npm-written json files","main":"index.js","files":["index.js"],"repository":{"type":"git","url":"git+https://github.com/npm/stringify-package.git"},"keywords":["npm","json","stringify","package.json"],"author":{"name":"Kat Marchán","email":"kzm@zkat.tech"},"license":"ISC","bugs":{"url":"https://github.com/npm/stringify-package/issues"},"homepage":"https://github.com/npm/stringify-package","scripts":{"prerelease":"npm t","release":"standard-version -s","postrelease":"npm publish && git push --follow-tags","pretest":"standard","test":"tap -J --coverage --100 test/*.js","update-coc":"weallbehave -o . && git add CODE_OF_CONDUCT.md && git commit -m 'docs(coc): updated CODE_OF_CONDUCT.md'","update-contrib":"weallcontribute -o . && git add CONTRIBUTING.md && git commit -m 'docs(contributing): updated CONTRIBUTING.md'"},"devDependencies":{"weallbehave":"*","weallcontribute":"*","standard":"*","standard-version":"*","tap":"*"},"gitHead":"d8ad1ee57190db2a94b5915f0efd06a64639c2ac","_id":"stringify-package@1.0.0","_npmVersion":"6.2.0","_nodeVersion":"10.5.0","_npmUser":{"name":"zkat","email":"npm@zkat.tech"},"dist":{"shasum":"e02828089333d7d45cd8c287c30aa9a13375081b","size":2327,"noattachment":false,"key":"/stringify-package/-/stringify-package-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/stringify-package/download/stringify-package-1.0.0.tgz"},"maintainers":[{"name":"fritzy","email":"fritzy@netflint.net"},{"name":"gar","email":""},{"name":"npm-cli-ops","email":""},{"name":"saquibkhan","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/stringify-package_1.0.0_1531938700589_0.49024776215845156"},"_hasShrinkwrap":false,"publish_time":1531938700703,"_cnpm_publish_time":1531938700703,"deprecated":"This module is not used anymore, and has been replaced by @npmcli/package-json"}},"readme":"# stringify-package [![npm version](https://img.shields.io/npm/v/stringify-package.svg)](https://npm.im/stringify-package) [![license](https://img.shields.io/npm/l/stringify-package.svg)](https://npm.im/stringify-package) [![Travis](https://img.shields.io/travis/npm/stringify-package/latest.svg)](https://travis-ci.org/npm/stringify-package) [![AppVeyor](https://img.shields.io/appveyor/ci/npm/stringify-package/latest.svg)](https://ci.appveyor.com/project/npm/stringify-package) [![Coverage Status](https://coveralls.io/repos/github/npm/stringify-package/badge.svg?branch=latest)](https://coveralls.io/github/npm/stringify-package?branch=latest)\n\n[`stringify-package`](https://github.com/npm/stringify-package) is a standalone\nlibrary for writing out package data as a JSON file. It is extracted from npm.\n\n## Install\n\n`$ npm install stringify-package`\n\n## Table of Contents\n\n* [Example](#example)\n* [Features](#features)\n* [Contributing](#contributing)\n* [API](#api)\n  * [`stringifyPackage`](#stringifypackage)\n\n### Example\n\n```javascript\nconst fs = require('fs')\nconst pkg = { /* ... */ }\n\nfs.writeFile('package.json', stringifyPackage(pkg), 'utf8', cb(err) => {\n    // ...\n})\n```\n\n### Features\n\n* Ensures consistent file indentation  \n  To match existing file indentation,\n  [`detect-indent`](https://npm.im/detect-indent) is recommended.\n\n* Ensures consistent newlines  \n  To match existing newline characters,\n  [`detect-newline`](https://npm.im/detect-newline) is recommended.\n\n### Contributing\n\nThe npm team enthusiastically welcomes contributions and project participation!\nThere's a bunch of things you can do if you want to contribute! The [Contributor\nGuide](CONTRIBUTING.md) has all the information you need for everything from\nreporting bugs to contributing entire new features. Please don't hesitate to\njump in if you'd like to, or even ask us questions if something isn't clear.\n\n### API\n\n### <a name=\"stringifypackage\"></a> `> stringifyPackage(data, indent, newline) -> String`\n\n#### Arguments\n\n* `data` - the package data as an object to be stringified\n* `indent` - the number of spaces to use for each level of indentation (defaults to 2)\n* `newline` - the character(s) to be used as a line terminator\n","_attachments":{},"homepage":"https://github.com/npm/stringify-package","bugs":{"url":"https://github.com/npm/stringify-package/issues"},"license":"ISC"}