@fakerjs/boolean
Version:
Boolean package provides functionality to generate a fake boolean value.
39 lines (27 loc) • 1.17 kB
Markdown
<h1 align="center">Boolean</h1>
<p align="center">
Boolean package provides functionality to generate a fake boolean value.
</p>
<p align="center">
<a href="https://github.com/faker-javascript/boolean/releases"><img alt="Version" src="https://img.shields.io/github/release/faker-javascript/boolean.svg?label=version&color=green"></a> <img src="https://img.shields.io/npm/dt/@fakerjs/boolean"> <img alt="node-current" src="https://img.shields.io/node/v/@fakerjs/boolean"> <a href="https://github.com/faker-javascript/boolean/actions/workflows/ci.yml"><img src="https://github.com/faker-javascript/boolean/actions/workflows/ci.yml/badge.svg"></a> <a href="https://github.com/faker-javascript/boolean"><img src="https://img.shields.io/badge/license-MIT-blue.svg?color=green" alt="License"></a>
</p>
## Install
```
$ npm install --save @fakerjs/boolean
```
## Usage
```js
import boolean from '@fakerjs/boolean';
boolean();
//=> true
boolean();
//=> false
```
## Tests
Run tests
```
npm run test
```
## License
[The MIT License (MIT)](https://github.com/faker-javascript/boolean/blob/master/LICENSE.txt)
Copyright (c) [Sergey Romanenko](https://github.com/Awilum)