stron

1.0.0 • Public • Published

stron

Use the generics variables to transform a string to boolean.

const stron = require('stron')

stron('on') // => true
stron('active') // => true
stron('inactive') // => false

Example

const stron = require('stron')

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

Readme

Keywords

none

Package Sidebar

Install

npm i stron

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • jondotsoy