1.0.0 • Published 6 years ago

stroff v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

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()
}