Skip to content

faker-javascript/age

Repository files navigation

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

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

About

Age package provides functionality to generate a fake age value.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published