Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

libnpm

npm701.1kISCdeprecated3.0.1

This package is no longer supported.

Collection of programmatic APIs for the npm CLI

npm, api, package manager, lib

readme

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

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.

changelog

Change Log

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

3.0.1 (2019-07-16)

3.0.0 (2019-07-10)

BREAKING CHANGES

  • requires updating node-gyp in npm/cli

2.0.1 (2018-12-05)

Bug Fixes

  • read-json: use bluebird for promisification (8dddde6)

2.0.0 (2018-11-27)

deps

BREAKING CHANGES

  • This includes a breaking libnpmaccess patch

1.5.0 (2018-11-26)

Features

  • pacote: minimal requires for pacote-related APIs (e19ce11)

1.4.0 (2018-11-13)

Features

  • libnpm: add support for partial requires (7ba10a7)

1.3.0 (2018-11-07)

Features

1.2.0 (2018-11-07)

Features

  • log: add npmlog to the bundle (c20abd1)

1.1.0 (2018-11-07)

Features

  • config: add libnpmconfig (6a44725)
  • json+tree: add read-package-json and npm-logical-tree (0198a91)
  • lock+prefix: add lock-verify and find-npm-prefix (00750c9)
  • parseArg: add npm-package-arg (5712614)
  • stringify: add stringify-package (0ec5bba)

1.0.0 (2018-08-31)

Features

  • api: document and export libnpm api (f85f8f8)

0.0.1 (2018-04-04)