https://github.com/faker-javascript/computer
Computer package provides functionality to generate a fake computer value.
https://github.com/faker-javascript/computer
Last synced: 2 months ago
JSON representation
Computer package provides functionality to generate a fake computer value.
- Host: GitHub
- URL: https://github.com/faker-javascript/computer
- Owner: faker-javascript
- License: mit
- Created: 2022-02-05T19:52:31.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-03-12T17:19:57.000Z (almost 4 years ago)
- Last Synced: 2025-10-10T13:16:30.225Z (2 months ago)
- Language: JavaScript
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
Computer
Computer package provides functionality to generate a fake computer value.
## Install
npm
```
npm install @fakerjs/computer --save-dev
```
yarn
```
yarn add @fakerjs/computer -D
```
## Usage
```js
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 test
```
## License
[The MIT License (MIT)](https://github.com/faker-javascript/computer/blob/master/LICENSE)
Copyright (c) [Sergey Romanenko](https://github.com/Awilum)