
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
npm-config-arguments
Advanced tools
Parses npm_config env variables and assigns them to argv - useful for 'npm run' commands
If you're using npm to write command line tools, you might want to pass arguments to your tools. By default, all arguments passed to a npm run
command are passed to npm, but not to the underlying process. This module parses all arguments passed to npm, optionally removes all known environment variables, and passes them on to your process.
Or, a better example with code:
// package.json
"scripts": {
"my-command": "node my-script.js"
}
To pass arguments to process.argv
for use with yargs, commander, or any other tool, you'd have to run npm run my-command -- --myArgument
. Using this module removes the need to include the extra --
, you can just call npm run my-command --myArgument
instead.
import assignConfigToArgs from 'npm-config-arguments'
assignConfigToArgs();
Or, if you're using ES5:
var assignConfigToArgs = require('npm-config-arguments').assignConfigToArgs;
assignConfigToArgs();
Include all known npm config variables
assignConfigToArgs({ includeAllKnown: true });
Exclude all known npm config variables expect for the specified one (npm_config_tag
)
assignConfigToArgs({ include: ['tag'] });
MIT, see LICENSE
for details.
FAQs
Parses npm_config env variables and assigns them to argv - useful for 'npm run' commands
The npm package npm-config-arguments receives a total of 258 weekly downloads. As such, npm-config-arguments popularity was classified as not popular.
We found that npm-config-arguments 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
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.