
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
npm i -S amiral
// my_module/bin/index.js
'use strict';
const Amiral = require('amiral');
const program = require('commander');
const path = require('path');
const { version } = require(path.resolve(__dirname, '..', 'package.json'));
const child_process = require('child_process');
Amiral.create({
name: 'cowsay',
description: 'Cow say some text',
fields: [{
name: 'content',
label: 'What say the cow',
required: false,
argument: true,
}, {
name: 'file',
label: 'What kind of cow',
required: false,
default: 'tux',
}],
}).then((props) => {
return child_process.spawn('cowsay', ['-f', props.file, props.content], { stdio: 'inherit' });
});
program.version(version, '-v, --version').parse(process.argv);
const CommandSchema = {
name: String, // Command name used to be called in cli
description: String, // Command description used in help message
help: String, // Help message showing after command usage and options
master: Boolean, // Specify if command is the master command
fields: [Field], // Property that can be passed to command or prompted
}
const FieldSchema = {
label: String, // Label used in question and field description
name: String, // Name of the field
type: undefined, // Specify the field type (Boolean, Number, String, Object, Array, Map)
required: Boolean, // Specify if the field is required
default: undefined, // Default value
value: undefined, // Stored value (filled automatically)
children: [Fractale.SELF], // Children
// Command specific
shortcut: String, // Command shortcut
argument: Boolean, // Specify if field is command argument
// Question specific
question: String, // Inquirer question type
message: String, // Override label for question
pageSize: Number,
prefix: String,
suffix: String,
choices: undefined,
filter: undefined,
transformer: undefined,
validate: undefined,
when: undefined,
}
FAQs
Command line tool
We found that amiral 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
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.