0.0.1 • Published 8 years ago

random-chinese-clothing-name v0.0.1

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

Instructions for use about random-chinese-clothing-name

1. Install

$ npm install random-chinese-clothing-name

2. Usage

const randomChineseClothingName = require('random-chinese-clothing-name');

const arr = randomChineseClothingName.getName();

console.log(arr);

Parameter Description

const randomChineseClothingName = require("random-chinese-clothing-name");

const log = console.log;

/**
 * Default parameter setting
 * --------------------------
 * randomChineseClothingName.getName() = randomChineseClothingName.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(randomChineseClothingName.getName());
=> ['牡丹洋绉裙','孔雀纹袍子','乌金云绣妆花缎上衣','翡翠纱衣','翠纹绦',... 995 more items];

// The specified number is 6
log(randomChineseClothingName.getName(6));
=> ['孔雀纹裙衫','娟纱金花裙','银纹袆衣','望仙腰带','暗花履','织锦结式幞头'];

Stay tuned for more naming features