Debian Codegraph @

debian/control

raw
1 Source: node-date-now
2 Section: javascript
3 Priority: optional
4 Maintainer: Debian Javascript Maintainers <[email protected]>
5 Uploaders: Shirish Togarla <[email protected]>
6 Build-Depends: debhelper-compat (= 13)
7 , dh-sequence-nodejs
8 , node-tape <!nocheck>
9 Standards-Version: 4.6.0
10 Vcs-Browser: https://salsa.debian.org/js-team/node-date-now
11 Vcs-Git: https://salsa.debian.org/js-team/node-date-now.git
12 Homepage: https://github.com/Raynos/date-now
13 Testsuite: autopkgtest-pkg-nodejs
14 Rules-Requires-Root: no
15
16 Package: node-date-now
17 Architecture: all
18 Depends: ${misc:Depends}
19 Multi-Arch: foreign
20 Description: requirable version of Date.now()
21 Use-case is to be able to mock out Date.now() using require interception.
22 For example
23 var now = require("date-now")
24 var ts = now()
25 var ts2 = Date.now()
26 assert.equal(ts, ts2)
27 Example of seed:
28 var now = require("date-now/seed")(timeStampFromServer)
29 // ts is in "sync" with the seed value from the server
30 // useful if your users have their local time being a few minutes
31 // out of your server time.
32 var ts = now()
33 .
34 Node.js is an event-based server-side JavaScript engine.