{"name":"boolean","version":"2.0.2","description":"boolean converts lots of things to boolean.","contributors":[{"name":"Golo Roden","email":"golo.roden@thenativeweb.io"},{"name":"Matthias Wagler","email":"matthias.wagler@thenativeweb.io"},{"name":"Ryan Smith","email":"ryan.smith@ht2labs.com"}],"main":"build/lib/boolean.js","types":"build/lib/boolean.d.ts","dependencies":{},"devDependencies":{"assertthat":"4.0.2","roboter":"7.3.1"},"repository":{"type":"git","url":"git://github.com/thenativeweb/boolean.git"},"keywords":["boolean","parser"],"license":"MIT","gitHead":"fe1f93f146d30f39d6aa559010f6ba3e7ea366f0","bugs":{"url":"https://github.com/thenativeweb/boolean/issues"},"homepage":"https://github.com/thenativeweb/boolean#readme","_id":"boolean@2.0.2","_nodeVersion":"12.10.0","_npmVersion":"6.10.3","dist":{"integrity":"sha512-ymsbJQlux/uogyEWfsXJUYzuyoOzPyp6NvEV71s6/ptQR7ptKO9uHF+WZL2GRATDeN52EFhNyrIu+exNZKh3Cw==","shasum":"f272d09a1a9372b080ddfe948232145d224c12b7","tarball":"http://registry-npm.ywwl.com/boolean/download/boolean-2.0.2.tgz","fileCount":8,"unpackedSize":5238,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdf/YVCRA9TVsSAnZWagAAuNQP/jpzE5Y80wMZC9pig+8i\n11y8XIRBfPJx5+ELrsW+Nn8CdnmQi+7AK/zGTgO8IG5nDWC6/i7NL1AbWAgy\nn5VcUJmedt7uKJrAtNMfHZw2mOnN+HMijtoi02FPBj0VqBzSE/K3bWrjamIl\na+wxsxub7eFdfEmQRZ+GaTw3ie7F9G0g8gjuEsdReD+ffL3fPGeyA1ZwhlD/\nrlfpJ7pVguzhLFmOklgDkyK234DxE6/opHJsYxsMeAjTKOln3wH5VzVqH062\nhOPPjw5Z9eyYPf0Srhdp3J9h4YmpzpT2BdglDLWFa2vlmSl4P6pE5FNUkUd3\nggSJ82DCSPk+dW7DNUpZ3OsdtXG2ZpjsOQ4iUwTAXbpzpllyWsEZ7FMf+slL\noUVStD9b3/qfSsXYvLfN80Pobd2iA1VmO7ATA0+R56nh8fAHV1WjJUBM+NBc\n5MdQtU5UKn/kNLdHKLcUM9PxPh2kcaD/X+GCqkjvSpvRmOLkt8T0SwKTGy08\nOjJHUGXHLwuUUguUhZqQ0pz/n5GaPkL8ykX6RtAiY6eNdhXplrFmP0t6W0mF\nr3LMmeczUY+z8EBhLRoyi+MUTYZD9jOHplx7wZxQw5JtYrVfAwx6It/OlfzZ\n7q25IBVDNCGHo32ytTEIrATac2kdhImJ2yLIQhB3t0YHsXHqXrGzBAFY30D2\nkv+7\r\n=JYxz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAFL9JsQKXDKQ+6OKbpt3OPzpQ84cCgJ0k7xVvmq3ETbAiBeHqPdE3qfWkWv8g34LMrF7bfKjwKNausuXtwdRzNitQ=="}],"size":2358,"noattachment":false,"key":"/boolean/-/boolean-2.0.2.tgz"},"maintainers":[{"email":"golo.roden@thenativeweb.io","name":"goloroden"},{"email":"jan-hendrik.grundhoefer@thenativeweb.io","name":"grundhoeferj"},{"email":"wagler@intuity.de","name":"mattwagl"},{"email":"hello@thenativeweb.io","name":"thenativeweb-admin"},{"email":"valentina.rotkin@thenativeweb.io","name":"vaalllaa"},{"email":"hannes.leutloff@yeldirium.de","name":"yeldir"}],"_npmUser":{"name":"thenativeweb-admin","email":"hello@thenativeweb.io"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/boolean_2.0.2_1568667156814_0.6739659572781291"},"_hasShrinkwrap":false,"readme":"# boolean\n\nboolean converts lots of things to boolean.\n\n## Status\n\n| Category         | Status                                                                                                                                     |\n| ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------ |\n| Version          | [![npm](https://img.shields.io/npm/v/boolean)](https://www.npmjs.com/package/boolean)                                                      |\n| Dependencies     | ![David](https://img.shields.io/david/thenativeweb/boolean)                                                                                |\n| Dev dependencies | ![David](https://img.shields.io/david/dev/thenativeweb/boolean)                                                                            |\n| Build            | ![GitHub Actions](https://github.com/thenativeweb/boolean/workflows/Release/badge.svg?branch=main) |\n| License          | ![GitHub](https://img.shields.io/github/license/thenativeweb/boolean)                                                                      |\n\n## Installation\n\n```shell\n$ npm install boolean\n```\n\n## Quick start\n\nFirst you need to add a reference to boolean in your application:\n\n```javascript\nconst { boolean, isBooleanable } = require('boolean');\n```\n\nIf you use TypeScript, use the following code instead:\n\n```typescript\nimport { boolean, isBooleanable } from 'boolean';\n```\n\nTo verify a value for its boolean value, call the `boolean` function and provide the value in question as parameter:\n\n```javascript\nconsole.log(boolean('true')); // => true\n```\n\nThe `boolean` function considers the following values to be equivalent to `true`:\n\n-   `true` (boolean)\n-   `'true'` (string)\n-   `'TRUE'` (string)\n-   `'t'` (string)\n-   `'T'` (string)\n-   `'yes'` (string)\n-   `'YES'` (string)\n-   `'y'` (string)\n-   `'Y'` (string)\n-   `'on'` (string)\n-   `'ON'` (string)\n-   `'1'` (string)\n-   `1` (number)\n\nIn addition to the primitive types mentioned above, boolean also supports their object wrappers `Boolean`, `String`, and `Number`.\n\n_Please note that if you provide a `string` or a `String` object, it will be trimmed._\n\nAll other values, including `undefined` and `null` are considered to be `false`.\n\n### Figuring out whether a value can be considered to be boolean\n\nFrom time to time, you may not want to directly convert a value to its boolean equivalent, but explicitly check whether it looks like a boolean. E.g., although `boolean('F')` returns `false`, the string `F` at least looks like a boolean, in contrast to something such as `123` (for which `boolean(123)` would also return `false`).\n\nTo figure out whether a value can be considered to be a boolean, use the `isBooleanable` function:\n\n```javascript\nconsole.log(isBooleanable('true')); // => true\n```\n\nThe `isBooleanable` function considers all of the above mentioned values to be reasonable boolean values, and additionally, also the following ones:\n\n-   `false` (boolean)\n-   `'false'` (string)\n-   `'FALSE'` (string)\n-   `'f'` (string)\n-   `'F'` (string)\n-   `'no'` (string)\n-   `'NO'` (string)\n-   `'n'` (string)\n-   `'N'` (string)\n-   `'off'` (string)\n-   `'OFF'` (string)\n-   `'0'` (string)\n-   `0` (number)\n\n## Running quality assurance\n\nTo run quality assurance for this module use [roboter](https://www.npmjs.com/package/roboter):\n\n```shell\n$ npx roboter\n```\n","publish_time":1568667156983,"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","_cnpm_publish_time":1568667156983,"dist-tags":{"latest":"3.2.0"}}