Exciting release!Introducing "safe npm". Learn more
Socket
Log inDemoInstall

namesgenerator

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Issues
File Explorer

Advanced tools

namesgenerator

Docker-style names generator

    0.0.1latest
    GitHub

Version published
Maintainers
1
Weekly downloads
496
decreased by-18.82%

Weekly downloads

Readme

Source

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
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

  • Go (original)
  • Alternative JavaScript implementation, Node.js only

FAQs

Last updated on 21 Nov 2017

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket
support@socket.devSocket SOC 2 Logo

Product

  • Package Issues
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc