JSPM

russian_name

2.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 75
  • Score
    100M100P100Q69971F
  • License ISC

Getting random Russian names

Package Exports

  • russian_name

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (russian_name) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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:

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