Security News
The Unpaid Backbone of Open Source: Solo Maintainers Face Increasing Security Demands
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
pkg-install
Advanced tools
Easier installation of Node.js packages irrespective of the platform or package manager.
npm install pkg-install
const { install } = require('pkg-install');
(async () => {
const { stdout } = await install(
{
twilio: '^3.1',
'node-env-run': '~1',
'pkg-install': undefined,
},
{
dev: true,
prefer: 'npm',
}
);
console.log(stdout);
})();
const { projectInstall } = require('pkg-install');
(async () => {
const { stdout } = await projectInstall({
prefer: 'yarn',
});
console.log(stdout);
})();
Full documentation of available functions and configuration can be found on: pkg-install.dkundel.com
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
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": {
"node-env-run": "^1.0.1",
"pkg-install": "^0.1.1",
"twilio": "^3.28.1"
}
While:
yarn add twilio@^3.1 node-env-run@~1 pkg-install
Will result in the following dependencies in the package.json
:
"dependencies": {
"node-env-run": "~1",
"pkg-install": "^0.1.1",
"twilio": "^3.1"
}
MIT
Thanks goes to these wonderful people (emoji key):
Dominik Kundel 💻 |
This project follows the all-contributors specification. Contributions of any kind welcome!
FAQs
A wrapper making installation of Node.js packages from code easier
The npm package pkg-install receives a total of 15,510 weekly downloads. As such, pkg-install popularity was classified as popular.
We found that pkg-install demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
Security News
License exceptions modify the terms of open source licenses, impacting how software can be used, modified, and distributed. Developers should be aware of the legal implications of these exceptions.
Security News
A developer is accusing Tencent of violating the GPL by modifying a Python utility and changing its license to BSD, highlighting the importance of copyleft compliance.