# libnpm [`libnpm`](https://github.com/npm/libnpm) is the programmatic API for npm. For bug reports and support, please head over to [npm.community](https://npm.community). ## Install `$ npm install libnpm` ## Table of Contents * [Example](#example) * [Features](#features) * [API](#api) * Fetching Packages and Their Info * [`manifest`](https://www.npmjs.com/package/pacote#manifest) * [`packument`](https://www.npmjs.com/package/pacote#packument) * [`tarball`](https://www.npmjs.com/package/pacote#tarball) * [`extract`](https://www.npmjs.com/package/pacote#extract) * [`search`](https://npm.im/libnpmsearch) * Package-related Registry APIs * [`publish`]() * [`unpublish`](#unpublish) * [`access`](https://npm.im/libnpmaccess) * Account-related Registry APIs * [`login`](https://www.npmjs.com/package/npm-profile#login) * [`adduser`](https://www.npmjs.com/package/npm-profile#adduser) * [`profile`](https://npm.im/npm-profile) * [`hook`](https://npm.im/libnpmhook) * [`team`](https://npm.im/libnpmteam) * [`org`](https://npm.im/libnpmorg) * Miscellaneous * [`parseArg`](https://npm.im/npm-package-arg) * [`config`](https://npm.im/libnpmconfig) * [`readJSON`](https://npm.im/read-package-json) * [`verifyLock`](https://npm.im/lock-verify) * [`getPrefix`](https://npm.im/find-npm-prefix) * [`logicalTree`](https://npm.im/npm-logical-tree) * [`stringifyPackage`](https://npm.im/stringify-package) * [`runScript`](https://www.npmjs.com/package/npm-lifecycle) * [`log`](https://npm.im/npmlog) * [`fetch`](https://npm.im/npm-registry-fetch) (plain ol' client for registry interaction) * [`linkBin`](https://npm.im/bin-links) ### Example ```javascript 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](#table-of-contents) for detailed documentation on each individual exported API.
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
CHANGELOG.md | File | 2.72 KB | 0644 |
|
LICENSE.md | File | 755 B | 0644 |
|
README.md | File | 1.98 KB | 0644 |
|
access.js | File | 55 B | 0644 |
|
adduser.js | File | 62 B | 0644 |
|
config.js | File | 55 B | 0644 |
|
extract.js | File | 57 B | 0644 |
|
fetch.js | File | 61 B | 0644 |
|
get-prefix.js | File | 58 B | 0644 |
|
hook.js | File | 53 B | 0644 |
|
index.js | File | 954 B | 0644 |
|
link-bin.js | File | 52 B | 0644 |
|
log.js | File | 49 B | 0644 |
|
logical-tree.js | File | 59 B | 0644 |
|
login.js | File | 60 B | 0644 |
|
manifest.js | File | 58 B | 0644 |
|
org.js | File | 52 B | 0644 |
|
package.json | File | 4.69 KB | 0644 |
|
packument.js | File | 59 B | 0644 |
|
parse-arg.js | File | 58 B | 0644 |
|
profile.js | File | 54 B | 0644 |
|
publish.js | File | 64 B | 0644 |
|
read-json.js | File | 91 B | 0644 |
|
run-script.js | File | 56 B | 0644 |
|
search.js | File | 55 B | 0644 |
|
stringify-package.js | File | 60 B | 0644 |
|
tarball.js | File | 57 B | 0644 |
|
team.js | File | 53 B | 0644 |
|
unpublish.js | File | 66 B | 0644 |
|
verify-lock.js | File | 54 B | 0644 |
|