![require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages](https://cdn.sanity.io/images/cgdhsj6q/production/be8ab80c8efa5907bc341c6fefe9aa20d239d890-1600x1097.png?w=400&fit=max&auto=format)
Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Plugin that post-processes the object returned from [yargs-parser] so that values can be passed over to base-cli
Plugin that post-processes the object returned from yargs-parser so that values can be passed over to base-cli
Install with npm:
$ npm install base-argv --save
Use as a plugin with base.
var Base = require('base');
var argv = require('base-argv');
var app = new Base();
app.use(argv());
// parse argv
var args = app.argv(['foo', 'bar', '--set=a:b']);
console.log(args);
Results in:
{ set: { a: 'b' }, tasks: [ 'foo', 'bar' ] }
This object can then be passed to something else for further processing.
You might also be interested in these projects:
config
method for mapping declarative configuration values to other 'base'… more | homepageoption
, enable
and disable
. See the readme… more | homepagePull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Generate readme and API documentation with verb:
$ npm install verb && npm run docs
Or, if verb is installed globally:
$ verb
Install dev dependencies:
$ npm install -d && npm test
Jon Schlinkert
Copyright © 2016, Jon Schlinkert. Released under the MIT license.
This file was generated by verb, v0.9.0, on May 24, 2016.
FAQs
Plugin that post-processes the object returned from [yargs-parser] so that values can be passed over to base-cli
The npm package base-argv receives a total of 20,575 weekly downloads. As such, base-argv popularity was classified as popular.
We found that base-argv demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
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.