@vlasov3087/russian_name
TypeScript icon, indicating that this package has built-in type declarations

2.0.2 • Public • Published

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');

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

Result example:

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

Configuration

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

Here's the full list of all available options:

Name Description Type
gender Limit results to the male or female gender String
amount Amount of names to return (only for .many method) Integer

Test

npm run test

/@vlasov3087/russian_name/

    Package Sidebar

    Install

    npm i @vlasov3087/russian_name

    Weekly Downloads

    13

    Version

    2.0.2

    License

    ISC

    Unpacked Size

    10.1 MB

    Total Files

    14

    Last publish

    Collaborators

    • vlasov3087