Skip to content

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

License

Notifications You must be signed in to change notification settings

shamrin/namesgenerator

Repository files navigation

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 namesgenerator npm package:

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 namesgenerator PyPI package:

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •