Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
common-bin-plus
Advanced tools
advanced common-bin for cli usage
npm i common-bin-plus --save
see common-bin for more details.
https://github.com/unjs/consola
this.logger.info('hello info level');
this.logger.warn('hello warn level');
this.logger.error(new Error('hello error level'));
this.logger.debug('hello debug level');
debug
log is disabled by default, you could enable it by:
--verbose
DEBUG=*
or DEBUG=${cliName}
logger.level = 'DEBUG'
const answers = await this.prompt([
{
type: 'input',
name: 'name',
message: 'What is your name:',
}, {
type: 'list',
name: 'type',
message: 'Choose a boilerplate:',
choices: [ 'empty', 'simple', 'plugin', 'framework' ],
},
], {});
this.logger.info(answers);
Use coffee :
const coffee = require('coffee');
describe('test/index.test.js', () => {
it('should work', () => {
return coffee.fork('/path/to/cli')
// .debug()
.waitForPrompt()
.write('tz\n')
.writeKey('DOWN', 'ENTER')
.write('this is a desc\n')
.expect('stdout', /{ name: 'tz', type: 'simple' }/)
.expect('stdout', /{ description: 'this is a desc' }/)
.expect('code', 0)
.end();
});
}):
FAQs
advanced common-bin for cli usage
The npm package common-bin-plus receives a total of 8 weekly downloads. As such, common-bin-plus popularity was classified as not popular.
We found that common-bin-plus demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 11 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
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.