{"id":15290208,"url":"https://github.com/npm/types","last_synced_at":"2025-04-05T07:07:00.404Z","repository":{"id":33827392,"uuid":"146641055","full_name":"npm/types","owner":"npm","description":"Typescript definitions for npm registry content","archived":false,"fork":false,"pushed_at":"2024-12-12T06:10:37.000Z","size":162,"stargazers_count":27,"open_issues_count":6,"forks_count":15,"subscribers_count":12,"default_branch":"main","last_synced_at":"2025-03-29T06:06:34.479Z","etag":null,"topics":["npm-cli","registry"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","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","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":"2018-08-29T18:20:52.000Z","updated_at":"2024-12-24T15:51:27.000Z","dependencies_parsed_at":"2024-12-16T05:05:57.645Z","dependency_job_id":null,"html_url":"https://github.com/npm/types","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/npm%2Ftypes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/npm%2Ftypes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/npm%2Ftypes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/npm%2Ftypes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/npm","download_url":"https://codeload.github.com/npm/types/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247299832,"owners_count":20916190,"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","registry"],"created_at":"2024-09-30T16:06:18.726Z","updated_at":"2025-04-05T07:07:00.386Z","avatar_url":"https://github.com/npm.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @npm/types\n\nTypescript definitions for npm registry endpoints\n\nFor example:\n\n```typescript\nimport * as npm from '@npm/types';\n\nfetch('https://registry.npmjs.org/cookie')\n  .then((res) =\u003e res.json())\n  .then((obj: npm.Packument) =\u003e {\n    // `obj` has proper registry types!\n  })\n```\n\n## Types\n\n### Packument\nResponse type for the `https://registry.npmjs.org/:packageName` endpoint\n\n### PackumentVersion\nResponse type for the `https://registry.npmjs.org/:packageName/:packageVersion` endpoint.  Also the type of `Packument['versions']` entries.\n\n### Manifest\nResponse type for the `https://registry.npmjs.org/:packageName` endpoint, _when made with the 'Accept: application/vnd.npm.install-v1+json' header_.\n\n### ManifestVersion\nResponse type for the `https://registry.npmjs.org/:packageName/:packageVersion` endpoint, _when made with the 'Accept: application/vnd.npm.install-v1+json' header_.   Also the type of `Manifest['versions']` entries.\n\n### PackageJSON\nA \"loose\" definition of package.json structures.\n\n\u003e [!NOTE]\n\u003e This is not an authoritative definition of package.json structures.  Rather, it is a best-effort attempt to describe the fields that are de-facto standards for Node.js, npm, and TypeScript development.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnpm%2Ftypes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnpm%2Ftypes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnpm%2Ftypes/lists"}