next-random-nickname
Random nickname.
installation
npm install -S @jswork/next-random-nickname
apis
api | params | description |
---|---|---|
get | - | Get a random nickname. |
usage
import NxRandomNickname from '@jswork/next-random-nickname';
// generate an array:
const results = [];
for (let index = 0; index < 10; index++) {
results.push(NxRandomNickname.get());
}
console.log(results);
// random:
[ '豪气的木瓜',
'纯真的油条',
'从未表白的帽子',
'高大的泡面',
'要出家的馒头',
'傻傻的黄豆',
'乖乖的松球',
'沉稳的饭卡',
'爱搭讪的奔马',
'飘逸的遥控器' ]
license
Code released under the MIT license.