{"name":"@npm/types","version":"2.0.0","description":"Typescript definitions for npm registry content","types":"./types/index.d.ts","scripts":{"lint":"eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\"","postlint":"template-oss-check","template-oss-apply":"template-oss-apply --force","lintfix":"npm run lint -- --fix","snap":"tap","test":"tap","posttest":"npm run lint"},"keywords":["npm registry","types","typescript","definitions","typings"],"author":{"name":"GitHub Inc."},"license":"MIT","engines":{"node":">=18.6.0"},"devDependencies":{"@npmcli/eslint-config":"^4.0.4","@npmcli/template-oss":"4.22.0","@types/node":"22.1.0","@typescript-eslint/parser":"^8.0.1","eslint-import-resolver-typescript":"^3.6.1","tap":"^18.7.3","typescript":"^5.4.5"},"repository":{"type":"git","url":"git+https://github.com/npm/types.git"},"templateOSS":{"//@npmcli/template-oss":"This file is partially managed by @npmcli/template-oss. Edits may be overwritten.","version":"4.22.0","allowPaths":["/types/"],"distPaths":["types/"],"latestCiVersion":18,"windowsCI":false,"macCI":false,"publish":true},"type":"module","tap":{"typecheck":true,"disable-coverage":true},"_id":"@npm/types@2.0.0","gitHead":"19fdbfbab6f91aa69532fad4e3bb922c56ccd1b0","bugs":{"url":"https://github.com/npm/types/issues"},"homepage":"https://github.com/npm/types#readme","_nodeVersion":"18.20.4","_npmVersion":"10.8.2","dist":{"integrity":"sha512-4WqrAc16VKuD8ea+tT8QC/WO+hkn32Z9qMFrG1u3dIAEv3pn0DuIUc7uBpplDJLFIyV7gq1qtm3Yv6kAxJh8KA==","shasum":"96ac91599e33899070930ca4bf9a17fc97806a3e","tarball":"http://registry-npm.ywwl.com/@npm/types/download/@npm/types-2.0.0.tgz","fileCount":4,"unpackedSize":9126,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@npm%2ftypes@2.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBINT2XDVVItwwOszQ63tWacRD9kupvyNxy5+RTGY4SYAiBij6lsYfRG44J4skqMPTY3OfIHwbDLf/4ETIVr9xV+WA=="}],"size":3562,"noattachment":false,"key":"/@npm/types/-/@npm/types-2.0.0.tgz"},"_npmUser":{"name":"reggi","email":"reggi@github.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/types_2.0.0_1723567125145_0.41847681255210656"},"_hasShrinkwrap":false,"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) => res.json())\n  .then((obj: npm.Packument) => {\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> [!NOTE]\n> 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","publish_time":1723567125318,"maintainers":[{"name":"maitxn","email":"maitxn@github.com"},{"name":"shmam","email":"shmam@github.com"},{"name":"kartykp","email":"kartykp@github.com"},{"name":"jithinpg","email":"jpg619@github.com"},{"name":"reggi","email":"reggi@github.com"},{"name":"karenjli","email":"karenjli@github.com"},{"name":"tayvongh","email":"tayvon@github.com"},{"name":"navin22","email":"navin22@github.com"},{"name":"dhei","email":"dhei@github.com"},{"name":"tiagonbotelho","email":"tiagonbotelho@github.com"},{"name":"hashtagchris","email":"hashtagchris@github.com"},{"name":"nishantms","email":"nishantms@github.com"},{"name":"feelepxyz.github","email":"feelepxyz@github.com"},{"name":"monishcm","email":"monishcm@github.com"},{"name":"jumoel","email":"jumoel@github.com"},{"name":"trevrosen","email":"trevrosen@github.com"},{"name":"fritzy","email":"fritzy@github.com"},{"name":"npm","email":"npm@npmjs.com"},{"name":"npmci","email":"ops@npmjs.com"},{"name":"saquibkhan","email":"saquibkhan@github.com"},{"name":"gar","email":"gar+npm@danger.computer"},{"name":"mylesborins","email":"myles.borins@gmail.com"}],"_cnpm_publish_time":1723567125318,"dist-tags":{"latest":"2.1.0"}}