0.0.1 • Published 6 years ago

random-chinese-animal-name v0.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
6 years ago

Instructions for use about random-chinese-animal-name

1. Install

$ npm install random-chinese-animal-name

2. Usage

const randomChineseAnimalName = require('random-chinese-animal-name');

const arr = randomChineseAnimalName.getName();

console.log(arr);

Parameter Description

const randomChineseAnimalName = require("random-chinese-animal-name");

const log = console.log;

/**
 * Default parameter setting
 * --------------------------
 * randomChineseAnimalName.getName() = randomChineseAnimalName.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(randomChineseAnimalName.getName());
=> ['暴尘燕','银月苍鸟','啸月天貂','龙狮迅猛鸽','烟影牛'... 995 more items];

// The specified number is 6
log(randomChineseAnimalName.getName(6));
=> ['太虚古羊','银獠暴貂','石像鬼狮','银月苍兽','深渊魔鸽'];

Stay tuned for more naming features