{"name":"init-package-json","version":"8.2.3","keywords":["init","package.json","package","helper","wizard","wizerd","prompt","start"],"author":{"name":"GitHub Inc."},"license":"ISC","_id":"init-package-json@8.2.3","maintainers":[{"name":"gar","email":"gar+npm@danger.computer"},{"name":"saquibkhan","email":"saquibkhan@github.com"},{"name":"npm-cli-ops","email":"npm-cli+bot@github.com"},{"name":"reggi","email":"reggi@github.com"},{"name":"hashtagchris","email":"hashtagchris@github.com"},{"name":"owlstronaut","email":"owlstronaut@github.com"}],"homepage":"https://github.com/npm/init-package-json#readme","bugs":{"url":"https://github.com/npm/init-package-json/issues"},"tap":{"nyc-arg":["--exclude","tap-snapshots/**"],"timeout":300,"test-ignore":"fixtures/"},"dist":{"shasum":"796606fb45e9d36a90acda5a4b91f274a6cc702d","tarball":"http://registry-npm.ywwl.com/init-package-json/download/init-package-json-8.2.3.tgz","fileCount":5,"integrity":"sha512-2o6FsRm1VytKF/642rI2MvMngXgaymvOjfYY97wlfU3uJXO+7kK+BbaQHxekpE3PwnqqnHkTDgGoff25k/HZ8A==","signatures":[{"sig":"MEUCIDDj17YcZlnrqHS93dQsca/oz5UTnBDtXUOrpqLDaahaAiEApHlsKRuNBPa9qFO9pI+rMf1Ue39ymw5ids8pSZY7B6Y=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/init-package-json@8.2.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":14540,"size":5578,"noattachment":false,"key":"/init-package-json/-/init-package-json-8.2.3.tgz"},"main":"lib/init-package-json.js","engines":{"node":"^20.17.0 || >=22.9.0"},"gitHead":"1fcd42cbf29879c0dcdca9b7b598d08aaea22698","scripts":{"lint":"npm run eslint","snap":"tap","test":"tap","eslint":"eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\"","lintfix":"npm run eslint -- --fix","postlint":"template-oss-check","posttest":"npm run lint","template-oss-apply":"template-oss-apply --force"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:39a67165-9b23-43bc-a4b4-ccbb7100b20c"}},"repository":{"url":"git+https://github.com/npm/init-package-json.git","type":"git"},"_npmVersion":"11.6.2","description":"A node module to get your node module started","directories":{},"templateOSS":{"publish":true,"version":"4.23.4","//@npmcli/template-oss":"This file is partially managed by @npmcli/template-oss. Edits may be overwritten."},"_nodeVersion":"22.21.1","dependencies":{"read":"^4.0.0","semver":"^7.7.2","promzard":"^2.0.0","npm-package-arg":"^13.0.0","@npmcli/package-json":"^7.0.0","validate-npm-package-name":"^7.0.0","validate-npm-package-license":"^3.0.4"},"_hasShrinkwrap":false,"devDependencies":{"tap":"^16.0.1","@npmcli/config":"^10.0.0","@npmcli/template-oss":"4.23.4","@npmcli/eslint-config":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/init-package-json_8.2.3_1763414655073_0.903436293042833","host":"s3://npm-registry-packages-npm-production"},"readme":"# init-package-json\n\nA node module to get your node module started.\n\n## Usage\n\n```javascript\nconst init = require('init-package-json')\nconst path = require('path')\n\n// a path to a promzard module.  In the event that this file is\n// not found, one will be provided for you.\nconst initFile = path.resolve(process.env.HOME, '.npm-init')\n\n// the dir where we're doin stuff.\nconst dir = process.cwd()\n\n// extra stuff that gets put into the PromZard module's context.\n// In npm, this is the resolved config object.  Exposed as 'config'\n// Optional.\nconst configData = { some: 'extra stuff' }\n\n// Any existing stuff from the package.json file is also exposed in the\n// PromZard module as the `package` object.  There will also be three\n// vars for:\n// * `filename` path to the package.json file\n// * `basename` the tip of the package dir\n// * `dirname` the parent of the package dir\n\nconst data = await init(dir, initFile, configData)\n// the data's already been written to {dir}/package.json\n// now you can do stuff with it\n```\n\nSee [PromZard](https://github.com/npm/promzard) for details about\nwhat can go in the config file.\n","publish_time":1763414655259,"_cnpm_publish_time":1763414655259,"dist-tags":{"latest":"9.0.0"}}