Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@fakerjs/age

faker-javascript13.7kMIT2.1.1TypeScript support: included

Age package provides functionality to generate a fake age value.

fakerjs, faker, fake, random, age

readme

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

changelog

2.1.1 (2022-01-14)

  • Typo updates.

2.1.0 (2022-01-11)

  • Added xo, tsd, c8.
  • Improved tests.

2.0.0 (2022-01-09)

BREAKING CHANGES

  • New function age istead of fakeAge

1.0.0 (2022-01-08)

  • Initial release