[Pkg-javascript-commits] [node-date-now] 04/04: Added description in control file

Shirish Togarla shirish12-guest at moszumanska.debian.org
Tue Feb 7 20:09:53 UTC 2017


This is an automated email from the git hooks/post-receive script.

shirish12-guest pushed a commit to branch master
in repository node-date-now.

commit 6966cf25c3b00c112fac834cd98d9fa5e37d3d02
Author: Shirish Togarla <shirishtogarla533 at gmail.com>
Date:   Tue Feb 7 20:08:02 2017 +0000

    Added description in control file
---
 debian/control | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/debian/control b/debian/control
index 39a5e17..d44a572 100644
--- a/debian/control
+++ b/debian/control
@@ -18,6 +18,17 @@ Depends:
  ${misc:Depends}
  , nodejs
 Description: A requirable version of Date.now()
- FIX_ME long description
+ 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.

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-date-now.git



More information about the Pkg-javascript-commits mailing list