GithubHelp home page GithubHelp logo

perguth / random-tree-names Goto Github PK

View Code? Open in Web Editor NEW
41.0 2.0 3.0 485 KB

:deciduous_tree: • Random tree names for all your things!

Home Page: https://perguth.github.io/random-tree-names/

License: MIT License

CSS 31.86% HTML 25.37% JavaScript 38.33% Shell 4.45%
generator isomorphic module fun trees names

random-tree-names's Introduction

random-tree-names

Get random tree names for all your things!

Usable as module, command-line interface and website:

Screenshot

Usage

Module

$ npm install random-tree-names
const treeNames = require('random-tree-names')

treeNames.random()
// => 'chenault-schneebeere'
treeNames.random('en')
// => 'flowering-almira-norway-maple'

Currently we have tree names in en and de.

Browser

git clone https://github.com/perguth/random-tree-names.git
cd random-tree-names
npm install
npm start
// => http://localhost:9966

Or simply click here: https://pguth.github.io/random-tree-names/

Command-line interface

$ npm install -g random-tree-names
$ random-tree-names de
feuer-ahorn

API

languages = randomTreeNames.languages

All available language strings.

allTreeNames = randomTreeNames.all([language])

Tree names in alphabetical order.

allTreeNames = randomTreeNames.random([language])

Random tree name.

CLI

$ npm install -g random-tree-names
$ random-tree-name --help

Usage:
  $ random-tree-names [language]

Commands:
  <default>    Pick a random name from all languages

  Options:
    -h, --help          Print usage
    -a, --all           Print all tree names
    -l, --languages     Print available language strings

Examples:
  $ random-tree-names                       # prints a random tree name
  $ random-tree-names -a                    # lists all tree names
  $ random-tree-names en -a                 # lists all english tree names

Tree name sources

If you know a good source for any other language please open an issue.

License

MIT

random-tree-names's People

Contributors

greenkeeper[bot] avatar perguth avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

prm3theus

random-tree-names's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.