https://github.com/jojoee/thai-names
:tada: Get random Thai names
https://github.com/jojoee/thai-names
alphabet names random thailand
Last synced: about 1 year ago
JSON representation
:tada: Get random Thai names
- Host: GitHub
- URL: https://github.com/jojoee/thai-names
- Owner: jojoee
- License: mit
- Created: 2017-01-21T14:24:24.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-12-18T09:44:01.000Z (over 7 years ago)
- Last Synced: 2025-04-08T16:48:41.917Z (about 1 year ago)
- Topics: alphabet, names, random, thailand
- Language: JavaScript
- Homepage:
- Size: 15.6 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# thai-names
[](https://travis-ci.org/jojoee/thai-names)
[](https://codecov.io/github/jojoee/thai-names)
[](http://npm-stat.com/charts.html?package=thai-names)
[](https://www.npmjs.com/package/thai-names)
[](http://opensource.org/licenses/MIT)
[](https://github.com/semantic-release/semantic-release)
Get random Thai names
## Installation
```
// npm
npm install starwars-names
// Bower
// src/firstnames.json
```
## Usage for npm
```javascript
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
- [x] Random
- [x] All
- [ ] Filter by alphabet, keyword, multi-keywords
## Future update
- [x] 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](https://firebase.google.com/) 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
- Thai names, credit from [รวบรวมชื่อคนที่สะกดได้ทั้งภาษาไทยและภาษาต่างประเทศ และความหมายของชื่อค่ะ](https://pantip.com/topic/31259696) by [Almond Hambert Jr](https://pantip.com/profile/240418)@22012017-1014
- Great guide - [How to Write an Open Source JavaScript Library](https://egghead.io/courses/how-to-write-an-open-source-javascript-library)