stroff

1.0.0 • Public • Published

stroff

Use the generics variables to transform a string to boolean.

const stroff = require('stroff')

stroff('off') // => true
stroff('disable') // => true
stroff('False') // => true
stroff('enable') // => false

Example

const stroff = require('stroff')

if (stroff(process.env.FEATURENAME_ENABLED)) {
    installFeature()
}

Readme

Keywords

none

Package Sidebar

Install

npm i stroff

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • jondotsoy