nam

namesgenerator

Docker-style names generator, in Python, JavaScript and TypeScript

Showing:

Popularity

Downloads/wk

647

GitHub Stars

66

Maintenance

Last Commit

4yrs ago

Contributors

3

Package

Dependencies

0

Size (min+gzip)

1.4KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

namesgenerator

Docker-style names generator, ported to Python and JavaScript/TypeScript.

JavaScript

Just copy namesgenerator.js to your project:

curl -O https://raw.githubusercontent.com/shamrin/namesgenerator/master/namesgenerator.js

Or as TypeScript module:

curl -o namesgenerator.ts https://raw.githubusercontent.com/shamrin/namesgenerator/master/namesgenerator.js

Or install from npm:

npm install --save namesgenerator

Usage

import getRandomName from './namesgenerator';

console.log(getRandomName()) // hopeful_morse

Python

Just copy namesgenerator.py to your project:

curl -O https://raw.githubusercontent.com/shamrin/namesgenerator/master/namesgenerator.py

Or install from PyPI:

pip install namesgenerator

Usage

>>> import namesgenerator
>>> print namesgenerator.get_random_name()
hopeful_morse
>>> for i in range(5):
...   print namesgenerator.get_random_name()
...
angry_torvalds
jolly_nobel
happy_almeida
sleepy_kowalevski
happy_almeida

Other implementations

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial