# vlag

> Quickly check if a flag is set. ```js var vlag = require('vlag'); var watching = vlag('watch'); ``` ## Installation ``` npm install --save vlag ```

Latest version **0.0.3** (published 2015-12-19) · ISC license · 0 weekly downloads

## Install

```sh
npm install vlag
pnpm add vlag
yarn add vlag
bun add vlag
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2015-12-19 |
| First published | 2015-12-19 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Romeo Van Snick |
| Maintainers | romeovs |

## Links

- npm: https://www.npmjs.com/package/vlag
- Repository: https://github.com/romeovs/vlag
- Homepage: https://github.com/romeovs/vlag#readme
- Issues: https://github.com/romeovs/vlag/issues
- npm.io page: https://npm.io/package/vlag

## Dependencies (1)

- [yargs](https://npm.io/package/yargs.md) ^3.12.0

## Recent versions

- 0.0.3 (latest) — 2015-12-19
- 0.0.2 — 2015-12-19
- 0.0.1 — 2015-12-19

## README

# vlag

Quickly check if a flag is set.
```js
var vlag = require('vlag');
var watching = vlag('watch');
```
## Installation
```
npm install --save vlag
```

## Usage

`vlag` checks following methods to set the flag:
```sh
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
```

---
_Source: https://npm.io/package/vlag · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
