【文件属性】:
文件名称:掷骰子:掷骰子
文件大小:2KB
文件格式:ZIP
更新时间:2021-02-14 03:24:41
JavaScript
掷骰子
返回随机数1到6
安装
npm i throw-dice
使用
模块
const throwDice = require ( 'throw-dice' )
console . log ( throwDice ( ) )
// -> number 1 .. 6
直接致电
npx throw-dice
// - > number 1 .. 6
全局安装
npm i -g throw-dice
随时打电话
throw-dice
// - > number 1 .. 6
短命令版本也可用
td
// - > number 1 .. 6
【文件预览】:
throw-dice-master
----.gitignore(12B)
----package.json(342B)
----cli.js(55B)
----index.js(175B)
----README.md(476B)