parse-bool

0.0.2 • Public • Published

Parse-Bool

Converts a string representation of a bool into a Boolean value.

Quick Start

var parseBool = require('parse-bool');
 
var bool = parseBool('true');
if (bool) { ... }

Supported Strings

  • "true" > True
  • "false" > False
  • "null" > Null

/parse-bool/

    Package Sidebar

    Install

    npm i parse-bool

    Weekly Downloads

    10

    Version

    0.0.2

    License

    MIT

    Last publish

    Collaborators

    • saikojosh