wikidata-person-names
TypeScript icon, indicating that this package has built-in type declarations

1.2.2 • Public • Published

wikidata-person-names

NPM Version node

Set of given and last names pulled from Wikidata

When using random names I needed a list of names. Wikidata has a lot of them, so I pulled them from there. As names don't change that often and are rather static this repo is a snapshot from Wikidata.

Maintainer Hint: Updating the file (with update-names.ts) will query different names than before as LIMIT in the SparQL query is non-deterministic.

Usage

Node.js

npm install wikidata-person-names
import { FAMILY, UNISEX } from "wikidata-person-names";

UNISEX;
//=> ['Akira', 'Alba', 'Jody', 'Marie', 'Sacha', …]

FAMILY;
//=> ['Hein', 'Ling', 'Owen', …]

randomItem(UNISEX);
//=> 'Jule'

Deno

via ghc.deno.dev

import {
	FAMILY,
	UNISEX,
} from "https://ghc.deno.dev/EdJoPaTo/wikidata-person-names/index.ts";

UNISEX;
//=> ['Akira', 'Alba', 'Jody', 'Marie', 'Sacha', …]

FAMILY;
//=> ['Hein', 'Ling', 'Owen', …]

randomItem(UNISEX);
//=> 'Jule'

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.2.2
    8
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.2.2
    8
  • 1.2.1
    7
  • 1.2.0
    0
  • 1.1.0
    152
  • 1.0.0
    0

Package Sidebar

Install

npm i wikidata-person-names

Weekly Downloads

167

Version

1.2.2

License

MIT

Unpacked Size

422 kB

Total Files

6

Last publish

Collaborators

  • edjopato