pkg-install
Easier installation of Node.js packages irrespective of the platform or package manager.
Installation
npm install pkg-install
Usage
Install a set of known dependencies to a project
const install = ; async { const stdout = await ; console;};
Run a project install of dependencies
const projectInstall = ; async { const stdout = await ; console;};
Documentation
Full documentation of available functions and configuration can be found on: pkg-install.dkundel.com
Known Issues
1. Disparity in supported flags
At the current moment yarn
has no equivalent flags for --save-bundle
or --no-save
. These will be ignored when yarn
has been detected as package manager.
The flags that were ignored in the run are returned as the ignoredFlags
property.
package.json
2. Different behavior of modifying This library uses npm
and yarn
under the hood and currently npm install
and yarn add
have different behaviors when passing versions to the package names
For example
npm install twilio^3.1 node-env-run~1 pkg-install
Will result in the following dependencies in the package.json
:
"dependencies":
While:
yarn add twilio@^3.1 node-env-run@~1 pkg-install
Will result in the following dependencies in the package.json
:
"dependencies":
License
MIT
Contributors
Thanks goes to these wonderful people (emoji key):
Dominik Kundel 💻 |
This project follows the all-contributors specification. Contributions of any kind welcome!