0.0.2 • Published 8 years ago
random-chinese-medicine-name v0.0.2
Instructions for use about random-chinese-medicine-name
1. Install
$ npm install random-chinese-medicine-name2. Usage
const randomChineseMedicineName = require('random-chinese-medicine-name');
const arr = randomChineseMedicineName.getName();
console.log(arr);Parameter Description
const randomChineseMedicineName = require("random-chinese-medicine-name");
const log = console.log;
/**
 * Default parameter setting
 * --------------------------
 * randomChineseMedicineName.getName() = randomChineseMedicineName.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(randomChineseMedicineName.getName());
=> ['蛇脱花浆','荆棘叶','黑天丁','八瓣仙丸','暗夜花'... 995 more items];
// The specified number is 6
log(randomChineseMedicineName.getName(6));
=> ['龙异花根','吸灵浆','百草莲','血蟒枝草','寒冰箭藤','赤血仁',];
Stay tuned for more naming features