@fakerjs/age

Age package provides functionality to generate a fake age value.

Usage no npm install needed!

<script type="module">
  import fakerjsAge from 'https://cdn.skypack.dev/@fakerjs/age';
</script>

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