
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
base-cli-process
Advanced tools
Normalizers for common argv commands handled by the base-cli plugin. Also pre-processes the given object with base-cli-schema before calling `.process()`
Normalizers for common argv commands handled by the base-cli plugin. Also pre-processes the given object with base-cli-schema before calling
.process()
Install with npm:
$ npm install --save base-cli-process
Normalizes the given object with base-cli-schema before calling the .process
method from base-cli.
var Base = require('base');
var cli = require('base-cli-process');
var app = new Base();
app.use(cli());
var pkg = require('./package');
app.cli.process(pkg, function(err) {
if (err) throw err;
});
Load and register async template helpers from a glob or filepath.
Example
$ app --asyncHelpers="foo.js"
Persist a value to a namespaced config object in package.json. For example, if you're using verb
, the value would be saved to the verb
object.
Params
Example
# display the config
$ app --config
# set a boolean for the current project
$ app --config=toc
# save the cwd to use for the current project
$ app --config=cwd:foo
# save the tasks to run for the current project
$ app --config=tasks:readme
Set the --cwd
to use in the current project.
Example
$ app --cwd=foo
Define data to be used for rendering templates.
Example
$ app --data=foo:bar
# {foo: 'bar'}
$ app --data=foo.bar:baz
# {foo: {bar: 'baz'}}
$ app --data=foo:bar,baz
# {foo: ['bar', 'baz']}}
Delete a value from app
.
Example
# delete a value from package.json config (e.g. `verb` object)
$ app --del=config.foo
# delete a value from in-memory options
$ app --del=option.foo
# delete a property from the global config store
$ app --del=globals.foo
Set a dest
path on app.options
.
Example
$ app --dest=foo
Enable a configuration setting. Also pass -c
to save the value to the verb.config
object in package.json.
Example
$ app --enable toc
Alias for engines
Load engines from a filepath or glob pattern.
Example
$ app --engines="./foo.js"
Get a value from app
and set it on app.cache.get
in memory, allowing the value to be re-used by another command, like --set
.
Example
$ app --get=pkg.name
Show a help menu.
Example
$ app --help
Load and register async template helpers from a glob or filepath.
Example
$ app --helpers="foo.js"
Set options. This is the API-equivalent of calling app.option('foo', 'bar')
.
Example
$ app --option=foo:bar
Set options. This is the API-equivalent of calling app.option('foo', 'bar')
.
Example
$ app --options=foo:bar
Load plugins from a filepath or glob pattern.
Example
$ app --plugins="./foo.js"
For tasks to run, regardless of other options passed on the command line.
Example
$ app --run
Set the given value, or a value was previously cached by --get
.
Example
$ app --set=pkg.name:foo
# example: persist `pkg.name` to `store.data.name`
$ app --get=pkg.name --set=store.name
Get a value from app
and set it on app.cache.get
in memory, allowing the value to be re-used by another command, like --set
.
Example
$ app --get=pkg.name
Enable or disable Table of Contents rendering
Example
# enable
$ app --toc
# or
$ app --toc=true
# disable
$ app --toc=false
config
method for mapping declarative configuration values to other 'base… more | homepagePull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Commits | Contributor |
---|---|
72 | jonschlinkert |
1 | slang800 |
(This project's readme.md is generated by verb, please don't edit the readme directly. Any changes to the readme must be made in the .verb.md readme template.)
To generate the readme, run the following command:
$ npm install -g verbose/verb#dev verb-generate-readme && verb
Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:
$ npm install && npm test
Jon Schlinkert
Copyright © 2017, Jon Schlinkert. Released under the MIT License.
This file was generated by verb-generate-readme, v0.4.3, on March 12, 2017.
FAQs
Normalizers for common argv commands handled by the base-cli plugin. Also pre-processes the given object with base-cli-schema before calling `.process()`
The npm package base-cli-process receives a total of 20,692 weekly downloads. As such, base-cli-process popularity was classified as popular.
We found that base-cli-process 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.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.