1.0.1 • Published 7 years ago

thai-names v1.0.1

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

thai-names

Travis Codecov Download - npm Version - npm License - npm semantic-release

Get random Thai names

Installation

// npm
npm install starwars-names

// Bower
// src/firstnames.json

Usage for npm

var names = require('thai-names');
var allNames = names.all();
var randomName = names.random();
var threeRandomNames = names.random(3);

// Example result
/*
[
  {
    name: 'Aileen',
    meaning: {
      en: '',
      th: 'อเมริกัน แปลว่า แสงสว่าง'
    }
  },
  ...
]
*/

API

  • Random
  • All
  • Filter by alphabet, keyword, multi-keywords

Future update

  • Separate meaning by pipe (|)
  • Demo page
  • Add script to alphabetical order and export to json format
  • Add script to check duplication
  • Add submit page (user can submit new name) using Firebase to store it
  • More name
  • Add surname
  • Add "very" Thai names
  • Combine firstname and surname

Contribute

  1. Fork the repo
  2. Install Node.js and dependencies
  3. Make a branch for your change and make your changes
  4. Run git add -A to add your changes
  5. Run npm run commit (don not use git commit)
  6. Push your changes with git push then create Pull Request

Contribute for owner

$ npm install -g semantic-release-cli
$ semantic-release-cli setup

Using above command to setup "semantic-release"

Reference