npm-get-package-info
v2.0.2
Published
Get info about npm package
Maintainers
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-infoOr Yarn:
$ yarn add npm-get-package-infoGetting 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
