Computer package provides functionality to generate a fake computer value.
npm
npm install @fakerjs/computer --save-dev
yarn
yarn add @fakerjs/computer -D
import computer from '@fakerjs/computer';
computer({locale: 'en_US'}).os();
//=> Catalina (10.15)
// Allowed locale: en_US
computer().os();
//=> Catalina (10.15)
computer().platform();
//=> macOS
computer().type();
//=> workstation
Run tests
npm run test
The MIT License (MIT) Copyright (c) Sergey Romanenko