Get unlimited public & private packages + package-based permissions with npm Pro.Get started »

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

Install

npm i parse-bool

DownloadsWeekly Downloads

2

Version

0.0.2

License

MIT

Last publish

Collaborators

  • avatar