您最多选择25个主题
主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
cn.yimian.xyz
482ca54e2b
|
3 年前 | |
---|---|---|
src | 3 年前 | |
.gitignore | 4 年前 | |
Dockerfile | 4 年前 | |
LICENSE | 4 年前 | |
README.md | 4 年前 | |
fy.js | 3 年前 | |
mksec | 4 年前 | |
package.json | 4 年前 | |
pm2.json | 4 年前 | |
yarn.lock | 4 年前 |
README.md
sentence-generator
Quick Start
cli tools
$ npm i -g mksec
Use in your project
$ npm i mksec
cli
Generate sentences by word
$ mksec g [word]
Generate one sentence by word
$ mksec o [word]
Generate sentences by word list file
$ mksec f [file]
Use as lib
const mksec = require('mksec');
(async ()=>{
console.log(await mksec({
word: 'Your word',
//url: 'optional api url'
}));
})()