0.0.3 • Published 8 years ago

vlag v0.0.3

Weekly downloads
5
License
ISC
Repository
github
Last release
8 years ago

vlag

Quickly check if a flag is set.

var vlag = require('vlag');
var watching = vlag('watch');

Installation

npm install --save vlag

Usage

vlag checks following methods to set the flag:

node script.js --watch      # via command line argument
watch=1 node script.js      # via environment variable, mixed case
watch=true node script.js
WATCH=1 node script.js      # via environment variable, uppercase
WATCH=true node script.js
0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago