vlag

0.0.3 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.3
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.3
    0
  • 0.0.2
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i vlag

Weekly Downloads

0

Version

0.0.3

License

ISC

Last publish

Collaborators

  • romeovs