mirror of
https://github.com/nodejs/node.git
synced 2025-05-17 16:40:19 +00:00
![]() PR-URL: https://github.com/nodejs/node/pull/28853 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Jiawen Geng <technicalcute@gmail.com> Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com> |
||
---|---|---|
.. | ||
access.js | ||
adduser.js | ||
CHANGELOG.md | ||
config.js | ||
extract.js | ||
fetch.js | ||
get-prefix.js | ||
hook.js | ||
index.js | ||
LICENSE.md | ||
link-bin.js | ||
log.js | ||
logical-tree.js | ||
login.js | ||
manifest.js | ||
org.js | ||
package.json | ||
packument.js | ||
parse-arg.js | ||
profile.js | ||
publish.js | ||
read-json.js | ||
README.md | ||
run-script.js | ||
search.js | ||
stringify-package.js | ||
tarball.js | ||
team.js | ||
unpublish.js | ||
verify-lock.js |
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.