{"id":15290181,"url":"https://github.com/npm/create-oss","last_synced_at":"2025-10-07T03:31:31.480Z","repository":{"id":42464718,"uuid":"210390077","full_name":"npm/create-oss","owner":"npm","description":"init module used for OSS projects by the npm CLI team","archived":true,"fork":false,"pushed_at":"2024-09-24T16:37:16.000Z","size":199,"stargazers_count":10,"open_issues_count":4,"forks_count":5,"subscribers_count":11,"default_branch":"main","last_synced_at":"2024-09-24T16:55:11.915Z","etag":null,"topics":["npm-cli","open-source","oss"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/npm.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-09-23T15:30:26.000Z","updated_at":"2024-09-24T16:47:25.000Z","dependencies_parsed_at":"2024-04-20T22:52:52.031Z","dependency_job_id":"a716e151-5d6f-4cfa-94c9-815a0b186a33","html_url":"https://github.com/npm/create-oss","commit_stats":{"total_commits":50,"total_committers":10,"mean_commits":5.0,"dds":0.78,"last_synced_commit":"319a07f7781d1839d2b09b66f04b4391ac624afa"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/npm%2Fcreate-oss","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/npm%2Fcreate-oss/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/npm%2Fcreate-oss/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/npm%2Fcreate-oss/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/npm","download_url":"https://codeload.github.com/npm/create-oss/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219877414,"owners_count":16554881,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["npm-cli","open-source","oss"],"created_at":"2024-09-30T16:06:09.737Z","updated_at":"2025-10-07T03:31:26.100Z","avatar_url":"https://github.com/npm.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `@npmcli/create-oss`\n\nThis is a module designed to be consumed with `npm init @npmcli/oss`.\n\nIt creates a `package.json` containing some default fields for the npm CLI team.\n\n## Usage\n\n```\n\u003e mkdir foo\n\u003e cd foo\n\u003e npm init @npmcli/oss\n```\n\n### `package.json`\n\nThe default `package.json` is defined in `lib/defaults.js` and looks like the following:\n\n```\nconst prompt = require('./prompt.js')\nconst defaults = {\n  name: prompt({\n    default: (_, { path }) =\u003e `@npmcli/${basename(path)}`,\n    edit: true,\n  }),\n  version: '1.0.0',\n  description: prompt(),\n  main: 'lib/index.js',\n  keywords: ['npm', 'oss'],\n}\n```\n\n#### Prompting\n\nThe `prompt` function accepts any options allowed by [read](https://github.com/npm/read#readme)\nwith a few minor tweaks.\n\nIf a `prompt` option is not specified, it will default to the name of the field being prompted for.\nAs an example, in the above defaults the prompt for the description field will be `description:`.\n\nThe `default` option may be set to a value, or a function. If a function is used, it will be called\nwith the name of the property and the options object. The result is awaited, so async functions can\nbe used as well as sync.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnpm%2Fcreate-oss","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnpm%2Fcreate-oss","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnpm%2Fcreate-oss/lists"}