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

https://github.com/faker-javascript/age

Age package provides functionality to generate a fake age value.
https://github.com/faker-javascript/age

fake-data fake-data-generator faker faker-generator fakerjs javascript js typescript

Last synced: about 2 months ago
JSON representation

Age package provides functionality to generate a fake age value.

Awesome Lists containing this project

README

          

Age



Age package provides functionality to generate a fake age value.


Version node-current License

## Install

npm
```
npm install @fakerjs/age --save-dev
```

yarn
```
yarn add @fakerjs/age -D
```

## Usage

```js
import age from '@fakerjs/age';

age();
//=> 42

age({type: 'child'});
//=> 10

// Allowed type: child, teen, adult, senior
```

## Tests

Run tests

```
npm run test
```

## License
[The MIT License (MIT)](https://github.com/faker-javascript/age/blob/master/LICENSE)
Copyright (c) [Sergey Romanenko](https://github.com/Awilum)