An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          

Computer


Computer package provides functionality to generate a fake computer value.


Version node-current License

## 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)