{"name":"init-package-json","version":"9.0.0","keywords":["init","package.json","package","helper","wizard","wizerd","prompt","start"],"author":{"name":"GitHub Inc."},"license":"ISC","_id":"init-package-json@9.0.0","maintainers":[{"name":"saquibkhan","email":"saquibkhan@github.com"},{"name":"npm-cli-ops","email":"npm-cli+bot@github.com"},{"name":"reggi","email":"reggi@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":"920bd59d2f8bbaa5b800b3436f8bc4369ad40391","tarball":"http://registry-npm.ywwl.com/init-package-json/download/init-package-json-9.0.0.tgz","fileCount":5,"integrity":"sha512-aYDqz4jgX1plB2GDCFYStlOh67QXVpAIeNgDq8rRGVDYMvLE39yYlf8+CjYY2chVOVfqLsSIycFYznHWozZ9CA==","signatures":[{"sig":"MEUCIHDKayADzP40uYd4hCTkElEXHDQsepA54HQFHg3/Zu3BAiEA/HhmcLGU80U4uCqHrIb3b5yiNF0LM3oCNGQTZQOi3N4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/init-package-json@9.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":14431,"size":5462,"noattachment":false,"key":"/init-package-json/-/init-package-json-9.0.0.tgz"},"main":"lib/init-package-json.js","engines":{"node":"^22.22.2 || ^24.15.0 || >=26.0.0"},"gitHead":"5b220c0dbe2b580c059c824f5148a6511fca96aa","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.13.0","description":"A node module to get your node module started","directories":{},"templateOSS":{"publish":true,"version":"5.1.0","updateNpm":false,"//@npmcli/template-oss":"This file is partially managed by @npmcli/template-oss. Edits may be overwritten."},"_nodeVersion":"26.2.0","dependencies":{"read":"^6.0.0","semver":"^7.7.2","promzard":"^4.0.0","npm-package-arg":"^14.0.0","@npmcli/package-json":"^8.0.0","validate-npm-package-name":"^8.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tap":"^16.0.1","@npmcli/config":"^10.0.0","@npmcli/template-oss":"5.1.0","@npmcli/eslint-config":"^7.0.0"},"_npmOperationalInternal":{"tmp":"tmp/init-package-json_9.0.0_1779469516866_0.12132701826763448","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":1779469517067,"_cnpm_publish_time":1779469517067,"dist-tags":{"latest":"9.0.0"}}