1.0.0 • Published 8 years ago
stron v1.0.0
stron
Use the generics variables to transform a string to boolean.
const stron = require('stron')
stron('on') // => true
stron('active') // => true
stron('inactive') // => falseExample
const stron = require('stron')
if (stron(process.env.FEATURENAME_ENABLED)) {
installFeature()
}1.0.0
8 years ago