README
npm-get-package-info
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