
Research
/Security News
Malicious npm Packages Target WhatsApp Developers with Remote Kill Switch
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.
flatiron-cli-config
Advanced tools
Encapsulated commands for managing configuration in flatiron CLI apps
Encapsulated commands for managing configuration in flatiron CLI apps
At its core flatiron-cli-config
is a broadway-compatible plugin which can be used by any flatiron
application:
var flatiron = require('flatiron'),
app = flatiron.app;
//
// Configure the Application to be a CLI app with
// a JSON configuration file `test-config.json`
//
app.name = 'app.js';
app.config.file({ file: 'test-config.json' });
app.use(flatiron.plugins.cli, {
usage: 'A simple CLI app using flatiron-cli-config'
});
//
// Expose CLI commands using `flatiron-cli-config`
//
app.use(require('flatiron-cli-config'));
if (!module.parent) {
//
// Start the application
//
app.start();
}
If you run the above script:
$ node app.js config set foo bar
$ node app.js config get foo
The output will be:
data: foo bar
And the contents of test-config.json
will be:
{ "foo": "bar" }
$ node examples/app.js help config
help: `app.js config *` commands allow you to edit your
help: local app.js configuration file. Valid commands are:
help:
help: app.js config list
help: app.js config set <key> <value>
help: app.js config get <key>
help: app.js config delete <key>
{
//
// Name of the store in `app.config` to use for `config list`. [Default: all config]
//
store: 'file'
//
// Set of properties which cannot be deleted using `config delete <key>`
//
restricted: ['foo', 'bar'],
//
// Set of functions which will execute before named commands: get, set, list, delete
//
before: { list: function () { ... } }
}
curl http://npmjs.org/install.sh | sh
[sudo] npm install flatiron-cli-config
Tests are written in vows and give complete coverage of all APIs and storage engines.
$ npm test
FAQs
Encapsulated commands for managing configuration in flatiron CLI apps
The npm package flatiron-cli-config receives a total of 307 weekly downloads. As such, flatiron-cli-config popularity was classified as not popular.
We found that flatiron-cli-config demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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.
Research
/Security News
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.
Research
/Security News
Socket uncovered 11 malicious Go packages using obfuscated loaders to fetch and execute second-stage payloads via C2 domains.
Security News
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.