1.0.1 • Published 4 years ago
@fakerjs/computer v1.0.1
Install
npm
npm install @fakerjs/computer --save-devyarn
yarn add @fakerjs/computer -DUsage
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 Tests
Run tests
npm run testLicense
The MIT License (MIT) Copyright (c) Sergey Romanenko