mirror of
https://github.com/nodejs/node.git
synced 2025-05-17 20:06:54 +00:00

PR-URL: https://github.com/nodejs/node/pull/25804 Reviewed-By: Myles Borins <myles.borins@gmail.com>
2.0 KiB
2.0 KiB
libnpm
libnpm
is the programmatic API for npm.
For bug reports and support, please head over to npm.community.
Install
$ npm install libnpm
Table of Contents
- Example
- Features
- API
- Fetching Packages and Their Info
- Package-related Registry APIs
- Account-related Registry APIs
- Miscellaneous
parseArg
config
readJSON
verifyLock
getPrefix
logicalTree
stringifyPackage
runScript
log
fetch
(plain ol' client for registry interaction)linkBin
Example
await libnpm.manifest('libnpm') // => Manifest { name: 'libnpm', ... }
API
This package re-exports the APIs from other packages for convenience. Refer to the table of contents for detailed documentation on each individual exported API.