JSPM

people_names

1.0.8
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q28739F
  • License MIT

Get popular human names

Package Exports

  • people_names

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 (people_names) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

human-names v1.0.8 Build Status

Get popular human english, italian, french, deutch or spanish names.

To create this repository I have forked this project and make some edit:

https://github.com/sindresorhus/supervillains

Thanks to the author https://github.com/sindresorhus

The name lists are just JSON files and can be used wherever.

Not accepting PRs for additional names.

Install

$ npm install --save human-names

Usage

var humanNames = require('human-names');

humanNames.femaleRandom();
//=> Lucy

API

.female

Type: array

Top female names sorted by popularity.

.male

Type: array

Top male names sorted by popularity.

.all

Type: array

Top names sorted by popularity.

.femaleRandom()

Type: function

Random female name.

.maleRandom()

Type: function

Random male name.

.allRandom()

Type: function

Random name.

CLI

$ npm install --global human-names
$ human-names --help

  Examples
    $ human-names
    Lucy

    $ human-names --all --type male
    Max
    John
    ...

  Options
    --all   Get all names instead of a random name
    --type  Type of name: female|male|all  Default: all
    --lang  lang of name: en|it|fr|de|es  Default: en

License

MIT © Alessandro Minoccheri