$ npm install @npm/types
Typescript definitions for npm registry content
import * as npm from '@npm/types';
const pkg = require('pacote');
pkg.packument('libnpm').then((obj: npm.Packument) => {
console.log(obj.name, 'is the name of the package');
});
Make it easier for typescript users to work with npm registry content!
Types should have comments so documentation on npm object properties can appear in vscode contextual popups.
npm.PackageJson
npm.PackageLock
npm.Packument
https://registry.npmjs.org/<package name here>
npm.Manifest
curl -H 'accept:application/vnd.npm.install-v1+json' https://registry.npmjs.org/<package name here>
npm.PackageVersion
npm.LockDependency
npm.ManifestVersion
npm.Dist
npm.NpmScripts
npm.Maintainer
npm.Repository
© 2010 - cnpmjs.org x YWFE | Home | YWFE