npm install --save japanese-name-generator
var generate = require('japanese-name-generator')
var japanesePerson = generate()
japanesePerson.gender // 'female'
japanesePerson.name // 'Matsushima Rinako'
japanesePerson.surname // 'Matsushima'
japanesePerson.firstName // 'Rinako'
// Gender is random but you may, alternately, generate names of a
// specific gender by passing `options.gender' as either
// `male' or `female':
var japaneseMale = generate({ gender: 'male' })
var japaneseFemale = generate({ gender: 'female' })
$ npm install -g japanese-name-generator
$ japanese-name-generator -g female
Matsushima Rinako
Run the unit tests with make
.
make test
MIT