npm-get-package-info
TypeScript icon, indicating that this package has built-in type declarations

2.0.2 • Public • Published

npm-get-package-info

NPM version NPM downloads

About

Get info about npm package

How to Install

First, install the library in your project by npm:

$ npm install npm-get-package-info

Or Yarn:

$ yarn add npm-get-package-info

Getting Started

const info = await npmGetPackageInfo({
  // options...
});

Options

Name Type Default Description Available options
name string undefined Package name e.g.: react
version string undefined Package version e.g.: 16.8.0, ~2.1.2, ^4.5.0
parseOutput boolean true Parse results to JSON Enable true / disable false
info string[] or string package.json fields keys Info about packages to be fetched e.g.: version, contributors, main etc.

License

This project is licensed under the MIT License © 2020-present Jakub Biesiada

Package Sidebar

Install

npm i npm-get-package-info

Weekly Downloads

228

Version

2.0.2

License

MIT

Unpacked Size

37.9 kB

Total Files

10

Last publish

Collaborators

  • jbiesiada