Security News
How Threat Actors are Abusing GitHub’s File Upload Feature to Host Malware
GitHub is susceptible to a CDN flaw that allows attackers to host malware on any public repository.
rasper
Advanced tools
Readme
Node.js parse argument options make ease.
Rasper transforms command arguments into an easy-to-use formatted object. Flags will be converted into key-value. If there is define flag without value the result will be assumed to be true. Boolean-looking arguments always will be returned as booleans. Numeric-looking arguments always will be returned as numbers. _
contains all arguments that didn't have an flag associated.
Install with npm
$ npm install rasper
Install with Yarn
$ yarn add rasper
Run with npx (without installing)
$ npx rasper
// cli.js
const argv = require('rasper')
console.dir(argv)
// console
$ pwa-installer dist/**/*.html -f 3 -n -o 4 foo bar baz --manifest --config=pwa.config.js 2 4 -f=99
{
_: [ 'dist/**/*.html', 'foo', 'bar', 'baz', 2, 4 ],
n: true,
o: 4,
manifest: true,
config: 'pwa.config.js',
f: 99
}
Note: If you don't provide an argument process.argv.slice(1)
is defined by default.
Want to contribute? Follow these recommendations.
Designed with ♥ by CJ Patoilo. Licensed under the MIT License.
FAQs
Node.js parse argument options make ease.
The npm package rasper receives a total of 33 weekly downloads. As such, rasper popularity was classified as not popular.
We found that rasper 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
GitHub is susceptible to a CDN flaw that allows attackers to host malware on any public repository.
Security News
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
Research
Security News
The Socket Research team found this npm package includes code for collecting sensitive developer information, including your operating system username, Git username, and Git email.