team.js 0000644 00000000065 15204556227 0006041 0 ustar 00 'use strict'
module.exports = require('libnpmteam')
login.js 0000644 00000000074 15204556227 0006223 0 ustar 00 'use strict'
module.exports = require('npm-profile').login
profile.js 0000644 00000000066 15204556227 0006554 0 ustar 00 'use strict'
module.exports = require('npm-profile')
manifest.js 0000644 00000000072 15204556227 0006717 0 ustar 00 'use strict'
module.exports = require('pacote/manifest')
verify-lock.js 0000644 00000000066 15204556227 0007346 0 ustar 00 'use strict'
module.exports = require('lock-verify')
get-prefix.js 0000644 00000000072 15204556227 0007163 0 ustar 00 'use strict'
module.exports = require('find-npm-prefix')
hook.js 0000644 00000000065 15204556227 0006053 0 ustar 00 'use strict'
module.exports = require('libnpmhook')
publish.js 0000644 00000000100 15204556227 0006547 0 ustar 00 'use strict'
module.exports = require('libnpmpublish').publish
adduser.js 0000644 00000000076 15204556227 0006544 0 ustar 00 'use strict'
module.exports = require('npm-profile').adduser
LICENSE.md 0000644 00000001363 15204556227 0006163 0 ustar 00 ISC License
Copyright (c) npm, Inc.
Permission to use, copy, modify, and/or distribute this software for
any purpose with or without fee is hereby granted, provided that the
above copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE COPYRIGHT HOLDER DISCLAIMS
ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR
CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE
USE OR PERFORMANCE OF THIS SOFTWARE.
logical-tree.js 0000644 00000000073 15204556227 0007461 0 ustar 00 'use strict'
module.exports = require('npm-logical-tree')
extract.js 0000644 00000000071 15204556227 0006562 0 ustar 00 'use strict'
module.exports = require('pacote/extract')
search.js 0000644 00000000067 15204556227 0006362 0 ustar 00 'use strict'
module.exports = require('libnpmsearch')
config.js 0000644 00000000067 15204556227 0006362 0 ustar 00 'use strict'
module.exports = require('libnpmconfig')
link-bin.js 0000644 00000000064 15204556227 0006615 0 ustar 00 'use strict'
module.exports = require('bin-links')
stringify-package.js 0000644 00000000074 15204556227 0010522 0 ustar 00 'use strict'
module.exports = require('stringify-package')
fetch.js 0000644 00000000075 15204556227 0006205 0 ustar 00 'use strict'
module.exports = require('npm-registry-fetch')
parse-arg.js 0000644 00000000072 15204556227 0006772 0 ustar 00 'use strict'
module.exports = require('npm-package-arg')
README.md 0000644 00000003760 15204556227 0006041 0 ustar 00 # 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.
CHANGELOG.md 0000644 00000005343 15204556227 0006372 0 ustar 00 # Change Log
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
<a name="3.0.1"></a>
## [3.0.1](https://github.com/npm/libnpm/compare/v3.0.0...v3.0.1) (2019-07-16)
<a name="3.0.0"></a>
# [3.0.0](https://github.com/npm/libnpm/compare/v2.0.1...v3.0.0) (2019-07-10)
* npm-lifecycle@3.0.0 ([56cc8e5](https://github.com/npm/libnpm/commit/56cc8e5))
### BREAKING CHANGES
* requires updating node-gyp in npm/cli
<a name="2.0.1"></a>
## [2.0.1](https://github.com/npm/libnpm/compare/v2.0.0...v2.0.1) (2018-12-05)
### Bug Fixes
* **read-json:** use bluebird for promisification ([8dddde6](https://github.com/npm/libnpm/commit/8dddde6))
<a name="2.0.0"></a>
# [2.0.0](https://github.com/npm/libnpm/compare/v1.5.0...v2.0.0) (2018-11-27)
### deps
* bump all libs ([83ae929](https://github.com/npm/libnpm/commit/83ae929))
### BREAKING CHANGES
* This includes a breaking libnpmaccess patch
<a name="1.5.0"></a>
# [1.5.0](https://github.com/npm/libnpm/compare/v1.4.0...v1.5.0) (2018-11-26)
### Features
* **pacote:** minimal requires for pacote-related APIs ([e19ce11](https://github.com/npm/libnpm/commit/e19ce11))
<a name="1.4.0"></a>
# [1.4.0](https://github.com/npm/libnpm/compare/v1.3.0...v1.4.0) (2018-11-13)
### Features
* **libnpm:** add support for partial requires ([7ba10a7](https://github.com/npm/libnpm/commit/7ba10a7))
<a name="1.3.0"></a>
# [1.3.0](https://github.com/npm/libnpm/compare/v1.2.0...v1.3.0) (2018-11-07)
### Features
* **bin:** add binLinks lib ([2f4d551](https://github.com/npm/libnpm/commit/2f4d551))
<a name="1.2.0"></a>
# [1.2.0](https://github.com/npm/libnpm/compare/v1.1.0...v1.2.0) (2018-11-07)
### Features
* **log:** add npmlog to the bundle ([c20abd1](https://github.com/npm/libnpm/commit/c20abd1))
<a name="1.1.0"></a>
# [1.1.0](https://github.com/npm/libnpm/compare/v1.0.0...v1.1.0) (2018-11-07)
### Features
* **config:** add libnpmconfig ([6a44725](https://github.com/npm/libnpm/commit/6a44725))
* **json+tree:** add read-package-json and npm-logical-tree ([0198a91](https://github.com/npm/libnpm/commit/0198a91))
* **lock+prefix:** add lock-verify and find-npm-prefix ([00750c9](https://github.com/npm/libnpm/commit/00750c9))
* **parseArg:** add npm-package-arg ([5712614](https://github.com/npm/libnpm/commit/5712614))
* **stringify:** add stringify-package ([0ec5bba](https://github.com/npm/libnpm/commit/0ec5bba))
<a name="1.0.0"></a>
# [1.0.0](https://github.com/npm/libnpm/compare/v0.0.1...v1.0.0) (2018-08-31)
### Features
* **api:** document and export libnpm api ([f85f8f8](https://github.com/npm/libnpm/commit/f85f8f8))
<a name="0.0.1"></a>
## 0.0.1 (2018-04-04)
package.json 0000644 00000005060 15204556227 0007043 0 ustar 00 {
"_from": "libnpm@3.0.1",
"_id": "libnpm@3.0.1",
"_inBundle": false,
"_integrity": "sha512-d7jU5ZcMiTfBqTUJVZ3xid44fE5ERBm9vBnmhp2ECD2Ls+FNXWxHSkO7gtvrnbLO78gwPdNPz1HpsF3W4rjkBQ==",
"_location": "/libnpm",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "libnpm@3.0.1",
"name": "libnpm",
"escapedName": "libnpm",
"rawSpec": "3.0.1",
"saveSpec": null,
"fetchSpec": "3.0.1"
},
"_requiredBy": [
"#USER",
"/"
],
"_resolved": "https://registry.npmjs.org/libnpm/-/libnpm-3.0.1.tgz",
"_shasum": "0be11b4c9dd4d1ffd7d95c786e92e55d65be77a2",
"_spec": "libnpm@3.0.1",
"_where": "/Users/isaacs/dev/npm/cli",
"author": {
"name": "Kat Marchán",
"email": "kzm@zkat.tech"
},
"bugs": {
"url": "https://github.com/npm/libnpm/issues"
},
"bundleDependencies": false,
"dependencies": {
"bin-links": "^1.1.2",
"bluebird": "^3.5.3",
"find-npm-prefix": "^1.0.2",
"libnpmaccess": "^3.0.2",
"libnpmconfig": "^1.2.1",
"libnpmhook": "^5.0.3",
"libnpmorg": "^1.0.1",
"libnpmpublish": "^1.1.2",
"libnpmsearch": "^2.0.2",
"libnpmteam": "^1.0.2",
"lock-verify": "^2.0.2",
"npm-lifecycle": "^3.0.0",
"npm-logical-tree": "^1.2.1",
"npm-package-arg": "^6.1.0",
"npm-profile": "^4.0.2",
"npm-registry-fetch": "^4.0.0",
"npmlog": "^4.1.2",
"pacote": "^9.5.3",
"read-package-json": "^2.0.13",
"stringify-package": "^1.0.0"
},
"deprecated": false,
"description": "Collection of programmatic APIs for the npm CLI",
"devDependencies": {
"nock": "^9.2.3",
"standard": "^11.0.1",
"standard-version": "^4.3.0",
"tap": "^12.0.1",
"weallbehave": "^1.2.0",
"weallcontribute": "^1.0.8"
},
"files": [
"*.js",
"lib"
],
"homepage": "https://github.com/npm/libnpm#readme",
"keywords": [
"npm",
"api",
"package manager",
"lib"
],
"license": "ISC",
"main": "index.js",
"name": "libnpm",
"repository": {
"type": "git",
"url": "git+https://github.com/npm/libnpm.git"
},
"scripts": {
"postrelease": "npm publish && git push --follow-tags",
"prerelease": "npm t",
"pretest": "standard",
"release": "standard-version -s",
"test": "tap -J --coverage test/*.js",
"update-coc": "weallbehave -o . && git add CODE_OF_CONDUCT.md && git commit -m 'docs(coc): updated CODE_OF_CONDUCT.md'",
"update-contrib": "weallcontribute -o . && git add CONTRIBUTING.md && git commit -m 'docs(contributing): updated CONTRIBUTING.md'"
},
"version": "3.0.1"
}
tarball.js 0000644 00000000071 15204556227 0006531 0 ustar 00 'use strict'
module.exports = require('pacote/tarball')
packument.js 0000644 00000000073 15204556227 0007101 0 ustar 00 'use strict'
module.exports = require('pacote/packument')
access.js 0000644 00000000067 15204556227 0006356 0 ustar 00 'use strict'
module.exports = require('libnpmaccess')
index.js 0000644 00000001672 15204556227 0006227 0 ustar 00 'use strict'
module.exports = {
config: require('./config.js'),
parseArg: require('./parse-arg.js'),
readJSON: require('./read-json.js'),
logicalTree: require('./logical-tree.js'),
getPrefix: require('./get-prefix.js'),
verifyLock: require('./verify-lock.js'),
stringifyPackage: require('./stringify-package.js'),
manifest: require('./manifest.js'),
tarball: require('./tarball.js'),
extract: require('./extract.js'),
packument: require('./packument.js'),
hook: require('./hook.js'),
access: require('./access.js'),
search: require('./search.js'),
team: require('./team.js'),
org: require('./org.js'),
fetch: require('./fetch.js'),
login: require('./login.js'),
adduser: require('./adduser.js'),
profile: require('./profile.js'),
publish: require('./publish.js'),
unpublish: require('./unpublish.js'),
runScript: require('./run-script.js'),
log: require('./log.js'),
linkBin: require('./link-bin.js')
}
unpublish.js 0000644 00000000102 15204556227 0007114 0 ustar 00 'use strict'
module.exports = require('libnpmpublish').unpublish
log.js 0000644 00000000061 15204556227 0005670 0 ustar 00 'use strict'
module.exports = require('npmlog')
run-script.js 0000644 00000000070 15204556227 0007215 0 ustar 00 'use strict'
module.exports = require('npm-lifecycle')
read-json.js 0000644 00000000133 15204556227 0006771 0 ustar 00 'use strict'
module.exports = require('bluebird').promisify(require('read-package-json'))
org.js 0000644 00000000064 15204556227 0005701 0 ustar 00 'use strict'
module.exports = require('libnpmorg')