https://github.com/afeiship/next-random-nickname
Random nickname.
https://github.com/afeiship/next-random-nickname
next nickname random
Last synced: 2 months ago
JSON representation
Random nickname.
- Host: GitHub
- URL: https://github.com/afeiship/next-random-nickname
- Owner: afeiship
- License: mit
- Created: 2019-02-20T04:23:10.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-11-20T03:17:35.000Z (over 4 years ago)
- Last Synced: 2025-03-10T09:19:17.344Z (3 months ago)
- Topics: next, nickname, random
- Language: JavaScript
- Size: 14.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# next-random-nickname
> Random nickname.[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]## installation
```bash
npm install -S @jswork/next-random-nickname
```## apis
| api | params | description |
| --- | ------ | ---------------------- |
| get | - | Get a random nickname. |## usage
```js
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](https://github.com/afeiship/next-random-nickname/blob/master/LICENSE.txt).[version-image]: https://img.shields.io/npm/v/@jswork/next-random-nickname
[version-url]: https://npmjs.org/package/@jswork/next-random-nickname[license-image]: https://img.shields.io/npm/l/@jswork/next-random-nickname
[license-url]: https://github.com/afeiship/next-random-nickname/blob/master/LICENSE.txt[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-random-nickname
[size-url]: https://github.com/afeiship/next-random-nickname/blob/master/dist/next-random-nickname.min.js[download-image]: https://img.shields.io/npm/dm/@jswork/next-random-nickname
[download-url]: https://www.npmjs.com/package/@jswork/next-random-nickname