browser-gimei
Random Japanese name/address generator. Generates random data in either kanji, hiragana, or katakana.
Refactor of node-gimei, which is in turn a Node.js version of gimei. Made to work in browsers.
Install
Using npm:
$ npm install browser-gimei
Using yarn:
$ yarn add browser-gimei
Using bower:
$ bower install browser-gimei
Load
From npm:
const gimei = ;
From Bower:
gimei
Object loads into global scope from the above script.
Usage
gimei
is an Object that contains multiple methods which return various randomly-generated data.
name()
Returns fictitious name:
var name = gimeiname;console; // "斎藤 陽菜"console; // "さいとう はるな"console; // "サイトウ ハルナ"console; // "斎藤"console; // "さいとう"console; // "サイトウ"console; // "陽菜"console; // "はるな"console; // "ハルナ"
male()
Returns fictitious male name:
var male = gimei; console; // "小林 顕士" console; // true console; // false
female()
Returns fictitious female name:
var female = gimei; console; // "根本 彩世" console; // false console; // true
address()
Returns fictitious address containing, or any one of, prefecture, city, and town:
var address = gimei; console; // 岡山県 大島郡大和村 稲木町 console; // おかやまけん おおしまぐんやまとそん いなぎちょう console; // オカヤマケン オオシマグンヤマトソン イナギチョウ console; // 岡山県 console; // おかやまけん console; // オカヤマケン console; // 大島郡大和村 console; // おおしまぐんやまとそん console; // オオシマグンヤマトソン console; // 稲木町 console; // いなぎちょう console; // イナギチョウ