Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 5d0325bc34
Fetching contributors…

Cannot retrieve contributors at this time

83 lines (72 sloc) 1.557 kB

1341024169358 1341024169000

TOC

args

should support --NAME.

var fn = args(['foo', 'bar']);
fn('dev ui', false).should.be.false;

fn = args(['foo', '--dev-ui']);
fn('dev ui', false).should.be.true;

should support --no-NAME.

var fn = args(['foo', '--no-dev-ui']);
fn('dev ui', true).should.be.false;

should support --NAME val.

var fn = args(['foo', '--dev-ui', 'yes']);
fn('dev ui', false).should.equal('yes');

bools

should parse string bool representations.

bools('', 'yes').should.be.true;
bools('', 'enabled').should.be.true;
bools('', 'no').should.be.false;
bools('', 'disabled').should.be.false;
bools('', true).should.be.true;
bools('', 'other').should.be.equal('other');

date

dimensions

env(prefix)

glob

include

ms

Parser

Parser()

.use(fn)

.read(path)

.parse(str)

replace

Jump to Line
Something went wrong with that request. Please try again.