Skip to content
Sections
>> Trisquel >> 软件包 >> etiona >> web >> node-date-now
etiona  ] [  nabia  ] [  aramo  ]
[ 源代码: node-date-now  ]

软件包: node-date-now (1.0.1-1)

requirable version of Date.now()

Use-case is to be able to mock out Date.now() using require interception. For example var now = require("date-now") var ts = now() var ts2 = Date.now() assert.equal(ts, ts2) Example of seed: var now = require("date-now/seed")(timeStampFromServer) // ts is in "sync" with the seed value from the server // useful if your users have their local time being a few minutes // out of your server time. var ts = now()

Node.js is an event-based server-side JavaScript engine.

其他与 node-date-now 有关的软件包

  • 依赖
  • 推荐
  • 建议
  • dep: nodejs
    evented I/O for V8 javascript

下载 node-date-now

下载可用于所有硬件架构的
硬件架构 软件包大小 安装后大小 文件
all 3.2 kB16 kB [文件列表]