1.0.0 • Published 8 years ago
stroff v1.0.0
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') // => falseExample
const stroff = require('stroff')
if (stroff(process.env.FEATURENAME_ENABLED)) {
installFeature()
}1.0.0
8 years ago