{"componentChunkName":"component---content-packages-and-modules-contributing-packages-to-the-registry-creating-a-package-json-file-mdx","path":"/creating-a-package-json-file","result":{"pageContext":{"frontmatter":{"title":"Creating a package.json file","redirect_from":["/about-package-json-and-package-lock-json-files","/getting-started/using-a-package.json"]},"mdxId":"233012ba-94cb-56c7-bd1e-2fe6e89c78a1","themeOptions":{"plugins":[],"icon":"./src/images/npm-favicon.png","editOnGitHub":true,"showContributors":false,"showSidebarEditLink":false,"repo":{"url":"https://github.com/npm/documentation","defaultBranch":"main"}},"editUrl":"https://github.com/npm/documentation/edit/main/content/packages-and-modules/contributing-packages-to-the-registry/creating-a-package-json-file.mdx","contributors":[],"tableOfContents":{"items":[{"url":"#packagejson-fields","title":"package.json fields","items":[{"url":"#required-name-and-version-fields","title":"Required name and version fields"},{"url":"#author-field","title":"Author field"},{"url":"#example","title":"Example"}]},{"url":"#creating-a-new-packagejson-file","title":"Creating a new package.json file","items":[{"url":"#running-a-cli-questionnaire","title":"Running a CLI questionnaire","items":[{"url":"#customizing-the-packagejson-questionnaire","title":"Customizing the package.json questionnaire"}]},{"url":"#creating-a-default-packagejson-file","title":"Creating a default package.json file","items":[{"url":"#example-1","title":"Example"},{"url":"#default-values-extracted-from-the-current-directory","title":"Default values extracted from the current directory"}]},{"url":"#setting-config-options-for-the-init-command","title":"Setting config options for the init command"}]}]}}},"staticQueryHashes":["2665939701","2665939701","4163176147","4163176147"]}