Simple email application for Android. Original source code: https://framagit.org/dystopia-project/simple-email
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
Distopico Vegan 9e639edc8d style: reformat indent 5 years ago
..
index.js style: reformat indent 5 years ago
license style: reformat indent 5 years ago
package.json style: reformat indent 5 years ago
readme.md style: reformat indent 5 years ago

readme.md

minimist-options Build Status

Write options for minimist in a comfortable way.

Installation

$ npm install --save minimist-options

Usage

const buildOptions = require('minimist-options');
const minimist = require('minimist');
const options = buildOptions({
name: {
type: 'string',
alias: 'n',
default: 'john'
},
force: {
type: 'boolean',
alias: ['f', 'o'],
default: false
},
published: 'boolean',
// special option for positional arguments (`_` in minimist)
	arguments: 'string'
});
const args = minimist(options);

instead of:

const minimist = require('minimist');
const options = {
string: ['name', '_'],
boolean: ['force', 'published'],
alias: {
n: 'name',
f: 'force',
o: 'force'
},
default: {
name: 'john',
f: false
}
};
const args = minimist(options);

License

MIT © Vadim Demedes