Skip to content

Letter package provides functionality to generate a fake letter value.

License

Notifications You must be signed in to change notification settings

faker-javascript/letter

Repository files navigation

Letter

Letter package provides functionality to generate a fake letter value.

Version node-current License

Install

npm

npm install @fakerjs/letter --save-dev

yarn

yarn add @fakerjs/letter -D

Usage

import letter from '@fakerjs/letter';

letter();
//=> z

letter({'casing': 'upper'});
//=> Z

letter({'casing': 'upper', 'locale': 'ru_RU'});
//=> Я

Tests

Run tests

npm run test

License

The MIT License (MIT) Copyright (c) Sergey Romanenko