JSPM

parseboolean

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 386
  • Score
    100M100P100Q72967F
  • License MIT

The missing parseBool function we all secretly want

Package Exports

  • parseboolean

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (parseboolean) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

parseBoolean

The missing parseBool function we all secretly want

Installing parseBoolean

Using npm

npm install --save parseboolean

Usage

Using parseBool is simple. Just require it and use it as if it was a function.

var parseBool = require('parseboolean');
console.log(parseBool('true')); // Outputs true

See the tests folder for an in-depth look at the true/false logic parseBool uses.