0.2.1 • Published 6 years ago

bitzo-funny-sentence v0.2.1

Weekly downloads
5
License
MIT
Repository
github
Last release
6 years ago

bitzo-funny-sentence

node npm license

To generate a random funny sentence with a name.

只是无聊随便写着玩玩的。。用以测试下npm的publish功能。。

不想学书上直接写个HelloWorld

不过这种无聊的功能,好像也没什么能用上的地方 /手动摊手

Just test npm publish.

This module has nothing to do with your project.

So ... Ignore it

Author

bitzo http://blog.bitzo.cn

Download

npm i bitzo-funny-sentence

API

const fst = require('bitzo-funny-sentence');

console.log(fst.geneate('bitzo')); // bitzo, 你妈喊你回家吃饭!

// 向库中添加自定义的短语
fst.add(name => `Hello, ` + name + `world! `);

for(let i=0; i<10; ++i) {
    console.log(fst.generate(`bitzo`));
}

// bitzo,来啊,互相伤害啊!
// bitzo, 你咋这么厉害呢
// 你去吃土吧,bitzo 。
// bitzo, 你咋这么厉害呢
// bitzo, 你妈喊你回家吃饭!
// 你去吃土吧,bitzo 。
// 我 bitzo 还会回来的!
// bitzo, 你妈喊你回家吃饭!
// 我 bitzo 还会回来的!
// bitzo, 你妈喊你回家吃饭!
0.2.1

6 years ago

0.2.0

6 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago