Skip to content
This repository has been archived by the owner on Sep 4, 2023. It is now read-only.

romeovs/vlag

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

quickly check if flag is set

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published