# debug-flags

> Easy way to check NODE_DEBUG environment variable for nested tokens

Latest version **0.0.1** (published 2014-02-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install debug-flags
pnpm add debug-flags
yarn add debug-flags
bun add debug-flags
```

## 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.1 |
| Published | 2014-02-19 |
| First published | 2014-02-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Phillip Kovalev |
| Maintainers | twilightfeel |
| Keywords | debug, environment |

## Links

- npm: https://www.npmjs.com/package/debug-flags
- Repository: git@github.com:nodules/debug-flags
- Homepage: https://github.com/nodules/debug-flags
- Issues: https://github.com/nodules/debug-flags/issues
- npm.io page: https://npm.io/package/debug-flags

## Alternatives

- [replicas-cli](https://npm.io/package/replicas-cli.md) — 3.0K weekly downloads
- [env-contract](https://npm.io/package/env-contract.md) — 133 weekly downloads
- [@openveo/api](https://npm.io/package/@openveo/api.md) — 61 weekly downloads
- [@ryniaubenpm2/cumque-error-reiciendis](https://npm.io/package/@ryniaubenpm2/cumque-error-reiciendis.md) — 54 weekly downloads
- [ts-global-type-extra](https://npm.io/package/ts-global-type-extra.md) — 11 weekly downloads

## Recent versions

- 0.0.1 (latest) — 2014-02-19

## README

# debug-flags

Easy way to check the environment variable `NODE_DEBUG` for the presence of the nested flags.

## Install

```console
$ npm install --save debug-flags
```

## Usage example

```javascript
// suppose NODE_DEBUG="app lib:func"
var isDebugEnabled = require('debug-flags');

isDebugEnabled('app'); // => true
isDebugEnabled('app:something:nested'); // => true
isDebugEnabled('flag'); // => false
isDebugEnabled('lib'); // => false
isDebugEnabled('lib:func'); // => true
isDebugEnabled('lib:func:xxx'); // => true
```

Have fun!

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