2.0.1 • Published 4 years ago

russian_name v2.0.1

Weekly downloads
4
License
ISC
Repository
github
Last release
4 years ago

This package perfect for prototyping stuff or examples of real russian names.

Usage

Install the package using npm and save it to the dependency list:

npm install --save russian_name

Usage example:

import { russianName } from 'russian_name';
// or
const { russianName } = require('russian_name');

name.one('female');
// or
name.many(10, 'male');

Result example:

{
    "gender": "male",
    "name": "Евельян",
    "surname": "Митронин",
    "fullname": "Евельян Митронин",
    "transliteration": {
      "name": "Evelyan",
      "surname": "Mitronin",
      "fullname": "Evelyan Mitronin"
    }
}

Configuration

name.one(gender); 
name.many(amount, gender);

Here's the full list of all available options:

NameDescriptionType
genderLimit results to the male or female genderString
amountAmount of names to return (only for .many method)Integer

Test

npm run test
1.1.1

4 years ago

1.1.0

4 years ago

1.1.4

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago