Boolean package provides functionality to generate a fake boolean value.
npm
npm install @fakerjs/boolean --save-dev
yarn
yarn add @fakerjs/boolean -D
import boolean from '@fakerjs/boolean';
boolean();
//=> true
boolean();
//=> false
Run tests
npm run test
The MIT License (MIT) Copyright (c) Sergey Romanenko