{"name":"init-package-json","version":"8.2.4","keywords":["init","package.json","package","helper","wizard","wizerd","prompt","start"],"author":{"name":"GitHub Inc."},"license":"ISC","_id":"init-package-json@8.2.4","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":"dc3c1c13e6b2da9631acb5b4763f5d5523133647","tarball":"http://registry-npm.ywwl.com/init-package-json/download/init-package-json-8.2.4.tgz","fileCount":5,"integrity":"sha512-SqX/+tPl3sZD+IY0EuMiM1kK1B45h+P6JQPo3Q9zlqNINX2XiX3x/WSbYGFqS6YCkODNbGb3L5RawMrYE/cfKw==","signatures":[{"sig":"MEUCIQCk4nWVmrj8jT2Kf4q+M8fjCr5HPVUaKWnQeAMy31BVewIgZhgj3ye6Evy7MSZ/Iw6/vwQ/xe/4epkYY8oPBWe915w=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/init-package-json@8.2.4","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":14540,"size":5577,"noattachment":false,"key":"/init-package-json/-/init-package-json-8.2.4.tgz"},"main":"lib/init-package-json.js","engines":{"node":"^20.17.0 || >=22.9.0"},"gitHead":"c595439a8b6b87beda3bb0dc712ac5c11b1cbfa9","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.3","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":"^5.0.1","semver":"^7.7.2","promzard":"^3.0.1","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":"^6.0.1"},"_npmOperationalInternal":{"tmp":"tmp/init-package-json_8.2.4_1763751069626_0.4836863185812921","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":1763751069808,"_cnpm_publish_time":1763751069808,"dist-tags":{"latest":"9.0.0"}}