0.0.1 • Published 8 years ago
random-chinese-weapon-name v0.0.1
Instructions for use about random-chinese-weapon-name
1. Install
$ npm install random-chinese-weapon-name
2. Usage
const randomChineseWeaponName = require('random-chinese-weapon-name');
const arr = randomChineseWeaponName.getName();
console.log(arr);
Parameter Description
const randomChineseWeaponName = require("random-chinese-weapon-name");
const log = console.log;
/**
* Default parameter setting
* --------------------------
* randomChineseWeaponName.getName() = randomChineseWeaponName.getName(1000);
* --------------------------------------------------------------------
* note : The parameter can not be two or more than two,
* otherwise execute the function according to the default parameters!
* --------------------------------------------------------------------
* @param {number} quantity
* ------------------------
* @return List
*/
log(randomChineseWeaponName.getName());
=> ['燕尾锏','红缨火焰戟','逍遥棒','子母鸳鸯鞭','龙象枪'... 995 more items];
// The specified number is 6
log(randomChineseWeaponName.getName(6));
=> ['金蛇棒','丧门钩','竹节锤','北冥剑','龙头刀','八荒戈'];
Stay tuned for more naming features
0.0.1
8 years ago