【文件属性】:
文件名称:moment-random:生成一个随机的moment.js对象
文件大小:63KB
文件格式:ZIP
更新时间:2021-05-17 10:00:17
JavaScript
瞬间随机
生成一个新的随机moment.js对象
安装
确保您安装了片刻
npm或纱
$ npm install --save moment-random
$ yarn add moment-random
用法
像其他任何图书馆一样要求它
const momentRandom = require ( 'moment-random' ) ;
momentRandom ( ) ;
// > random date in the past
您还可以指定一个间隔
momentRandom ( end )
// > random date between 0 unix time and {end} dates
momentRandom ( end , start )
// > random date between {start} and {end} dates
争论
end, sta
【文件预览】:
moment-random-master
----.travis.yml(97B)
----package.json(906B)
----.eslintrc.json(359B)
----test()
--------.eslintrc.json(207B)
--------index.spec.js(1KB)
----moment.png(12KB)
----LICENSE(1KB)
----package-lock.json(186KB)
----src()
--------index.js(695B)
----.gitignore(197B)
----README.md(858B)
----.editorconfig(148B)