@fakerjs/age
TypeScript icon, indicating that this package has built-in type declarations

2.1.1 • Public • Published

Age

Age package provides functionality to generate a fake age value.

Version node-current License

Install

$ npm install --save @fakerjs/age

Usage

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) Copyright (c) Sergey Romanenko

Dependents (1)

Package Sidebar

Install

npm i @fakerjs/age

Weekly Downloads

3,668

Version

2.1.1

License

MIT

Unpacked Size

3.79 kB

Total Files

5

Last publish

Collaborators

  • awilum