Integer package provides functionality to generate a fake integer value.
npm
npm install @fakerjs/integer --save-dev
yarn
yarn add @fakerjs/integer -D
import integer from '@fakerjs/integer';
integer();
//=> 1109494507128900
integer({min: 0, max: 10});
//=> 5
Run tests
npm run test
The MIT License (MIT) Copyright (c) Sergey Romanenko