# libnpm

> Collection of programmatic APIs for the npm CLI

Latest version **3.0.1** (published 2019-07-16) · ISC license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install libnpm
pnpm add libnpm
yarn add libnpm
bun add libnpm
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 3.0.1 |
| Published | 2019-07-16 |
| First published | 2017-12-21 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 20 |
| Unpacked size | 9.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 110 |
| Author | Kat Marchán |
| Maintainers | isaacs |
| Keywords | npm, api, package manager, lib |

## Links

- npm: https://www.npmjs.com/package/libnpm
- Repository: https://github.com/npm/libnpm
- Homepage: https://github.com/npm/libnpm#readme
- Issues: https://github.com/npm/libnpm/issues
- npm.io page: https://npm.io/package/libnpm

## Dependencies (20)

- [npmlog](https://npm.io/package/npmlog.md) ^4.1.2
- [pacote](https://npm.io/package/pacote.md) ^9.5.3
- [bluebird](https://npm.io/package/bluebird.md) ^3.5.3
- [bin-links](https://npm.io/package/bin-links.md) ^1.1.2
- [libnpmorg](https://npm.io/package/libnpmorg.md) ^1.0.1
- [libnpmhook](https://npm.io/package/libnpmhook.md) ^5.0.3
- [libnpmteam](https://npm.io/package/libnpmteam.md) ^1.0.2
- [lock-verify](https://npm.io/package/lock-verify.md) ^2.0.2
- [npm-profile](https://npm.io/package/npm-profile.md) ^4.0.2
- [libnpmaccess](https://npm.io/package/libnpmaccess.md) ^3.0.2
- [libnpmconfig](https://npm.io/package/libnpmconfig.md) ^1.2.1
- [libnpmsearch](https://npm.io/package/libnpmsearch.md) ^2.0.2
- [libnpmpublish](https://npm.io/package/libnpmpublish.md) ^1.1.2
- [npm-lifecycle](https://npm.io/package/npm-lifecycle.md) ^3.0.0
- [find-npm-prefix](https://npm.io/package/find-npm-prefix.md) ^1.0.2
- [npm-package-arg](https://npm.io/package/npm-package-arg.md) ^6.1.0
- [npm-logical-tree](https://npm.io/package/npm-logical-tree.md) ^1.2.1
- [read-package-json](https://npm.io/package/read-package-json.md) ^2.0.13
- [stringify-package](https://npm.io/package/stringify-package.md) ^1.0.0
- [npm-registry-fetch](https://npm.io/package/npm-registry-fetch.md) ^4.0.0

## Alternatives

- [@cantoo/pdf-lib](https://npm.io/package/@cantoo/pdf-lib.md) — 297.9K weekly downloads
- [datatables.net-buttons](https://npm.io/package/datatables.net-buttons.md) — 200.1K weekly downloads
- [@ckeditor/ckeditor5-export-pdf](https://npm.io/package/@ckeditor/ckeditor5-export-pdf.md) — 167.0K weekly downloads
- [scanbot-web-sdk](https://npm.io/package/scanbot-web-sdk.md) — 15.0K weekly downloads
- [@syncfusion/ej2-angular-pdfviewer](https://npm.io/package/@syncfusion/ej2-angular-pdfviewer.md) — 8.8K weekly downloads

## Recent versions

- 3.0.1 (latest) — 2019-07-16
- 3.0.0 — 2019-07-10
- 2.0.1 — 2018-12-05
- 2.0.0 — 2018-11-27
- 1.5.0 — 2018-11-26
- 1.4.0 — 2018-11-13
- 1.3.0 — 2018-11-07
- 1.2.0 — 2018-11-07
- 1.1.0 — 2018-11-07
- 1.0.0 — 2018-08-31
- 0.0.1 — 2018-04-04
- 0.0.0 — 2017-12-21

## README

# 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.

---
_Source: https://npm.io/package/libnpm · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
