{"name":"boolean","version":"3.2.0","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"},{"name":"Thomas Schaaf","email":"schaaf@komola.de"},{"name":"Sebastian Mares","email":"camil.sebastian@mares.email"}],"private":false,"main":"build/lib/index.js","types":"build/lib/index.d.ts","dependencies":{},"devDependencies":{"assertthat":"6.4.0","roboter":"12.7.0","semantic-release-configuration":"2.0.7"},"scripts":{},"repository":{"type":"git","url":"git://github.com/thenativeweb/boolean.git"},"keywords":["boolean","parser"],"license":"MIT","gitHead":"919d80f7c987e809270671bbfa99e14da8bdc477","bugs":{"url":"https://github.com/thenativeweb/boolean/issues"},"homepage":"https://github.com/thenativeweb/boolean#readme","_id":"boolean@3.2.0","_nodeVersion":"16.14.0","_npmVersion":"8.4.0","dist":{"integrity":"sha512-d0II/GO9uf9lfUHH2BQsjxzRJZBdsjgsBiW4BvhWk/3qoKwQFjIDVN19PfX8F2D/r9PCMTtLWjYVCFrpeYUzsw==","shasum":"9e5294af4e98314494cbb17979fa54ca159f116b","tarball":"http://registry-npm.ywwl.com/boolean/download/boolean-3.2.0.tgz","fileCount":18,"unpackedSize":12474,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiDMpICRA9TVsSAnZWagAAan0QAIeQ/kItoLYGb9X2Ldlx\nPiMH7QESGtxjzcxlHe3DuCeBVR3bCXMUndcykRykO+2oFYd8RPj2YXJZuOP8\ns0rlyUWLFpl9doYA9qtHTS7GHnttpB8vpvqcl6B+QeOSsc6NdJE3et4JVJWN\nqu8HQjl5ow3rbubcfWtkHJvBHWPFOIY6FaTYCZzZpg0alH4k66v8dPcRiVNq\nT/eUpc0o3RMj2SFHnr+z7ucDHtOmf8hxgfWTN21Q70e260AXd9mcEbNwjcQ5\nV5swK77N6X7m3mAw6mLTqqcWxoFbMX4dLZC6NJ5pZJ9SCec75mvE58g14XqS\nOghrCJCXV+gn4tmwd6z/7rga1WUrihD1HlHUrOP49rnJuvXxJDQsHHiOchcW\nW0NylOCUFrpuFRN+Fi55ZRCUyBj10mJCm6+cNGYb4YCT5lbJhPin8/NSh3Nn\n4OpFKiTCJ6O2OUxnk/IbFgJGaHJvbtVS8YnjXT2CzYLHiWFCJR15UPosRVEk\n0TQHrWGqE29pJo0kaTXI6qdlPbYzwibOmV1ZhPK7fPjNNMBUDwYm9pUSpRqq\nINXbj8HgBTC2E+iC3FQsVUcztVjEgDSDjKaUEW0EpCWvzBv9CUA42kD48+FX\n35czasZ2Z7so92e4laCaEd1w7cs0xChLhuAR+RHG+bk/0c2uLqUsOsMMrpHT\nVrAO\r\n=Auj5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDyMgDO0+nlt7u4xHc2RVj8jaVbcUhnoP9s5Oa7ykWl4QIhAJDdSvAib7Z8246zxsG8DtqJNMN+YUsclIryDPELQFmR"}],"size":4488,"noattachment":false,"key":"/boolean/-/boolean-3.2.0.tgz"},"_npmUser":{"name":"thenativeweb-admin","email":"hello@thenativeweb.io"},"directories":{},"maintainers":[{"name":"thenativeweb-admin","email":"hello@thenativeweb.io"},{"name":"goloroden","email":"golo.roden@thenativeweb.io"},{"name":"yeldir","email":"hannes.leutloff@yeldirium.de"},{"name":"nhummel","email":"noah.hummel@thenativeweb.io"},{"name":"dotkuro","email":"mail@akampf.dev"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/boolean_3.2.0_1645005383900_0.7638484176964531"},"_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":1645005384137,"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","_cnpm_publish_time":1645005384137,"dist-tags":{"latest":"3.2.0"}}