
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
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.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.