kopia lustrzana https://github.com/IoTcat/sentence-generator.git
Nie możesz wybrać więcej, niż 25 tematów
Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
cn.yimian.xyz
482ca54e2b
|
3 lat temu | |
---|---|---|
src | 3 lat temu | |
.gitignore | 4 lat temu | |
Dockerfile | 4 lat temu | |
LICENSE | 4 lat temu | |
README.md | 4 lat temu | |
fy.js | 3 lat temu | |
mksec | 4 lat temu | |
package.json | 4 lat temu | |
pm2.json | 4 lat temu | |
yarn.lock | 4 lat temu |
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'
}));
})()