node-date-now_1.0.1-3_all.deb


Advertisement

Description

node-date-now - requirable version of Date.now()

Property Value
Distribution Ubuntu 19.04 (Disco Dingo)
Repository Ubuntu Universe amd64
Package filename node-date-now_1.0.1-3_all.deb
Package name node-date-now
Package version 1.0.1
Package release 3
Package architecture all
Package type deb
Category universe/web
Homepage https://github.com/Raynos/date-now
License -
Maintainer Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Download size 3.80 KB
Installed size 17.00 KB
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.

Alternatives

Package Version Architecture Repository
node-date-now_1.0.1-3_all.deb 1.0.1 all Ubuntu Universe
node-date-now - - -

Requires

Name Value
nodejs -

Download

Type URL
Mirror archive.ubuntu.com
Binary Package node-date-now_1.0.1-3_all.deb
Source Package node-date-now

Install Howto

  1. Update the package index:
    # sudo apt-get update
  2. Install node-date-now deb package:
    # sudo apt-get install node-date-now

Files

Path
/usr/lib/nodejs/date-now/index.js
/usr/lib/nodejs/date-now/package.json
/usr/lib/nodejs/date-now/seed.js
/usr/share/doc/node-date-now/README.md
/usr/share/doc/node-date-now/changelog.Debian.gz
/usr/share/doc/node-date-now/copyright

Changelog

2019-01-26 - Jérémy Lal <kapouer@melix.org>
node-date-now (1.0.1-3) unstable; urgency=medium
* Team upload
* Patch to fix test flakyness (Closes: #920538)
2019-01-26 - Xavier Guimard <yadd@debian.org>
node-date-now (1.0.1-2) unstable; urgency=medium
* Team upload
* Ignore test if nocheck is set
* Bump debheper compatibility level to 11
* Declare compliance with policy 4.3.0
* Change section to javascript
* Update VCS fields to salsa
* Update debian/copyright
* Add upstream/metadata
* Install missing seed.js
* Update autopkgtest files to test installed files
2017-02-07 - Shirish Togarla <shirishtogarla533@gmail.com>
node-date-now (1.0.1-1) unstable; urgency=low
* Initial release (Closes: #854509)

See Also

Package Description
node-date-time_2.1.0-1_all.deb Pretty datetime like 2014-01-09 06:46:01
node-dateformat_3.0.0-1_all.deb JavaScript Date Format - Node.js module
node-de-indent_1.0.2-1_all.deb remove extra indent from a block of code
node-death_1.0.0-1_all.deb Gracefully cleanup on termination
node-debug_3.1.0-2_all.deb small debugging utility for Node.js
node-decamelize_1.2.0-1_all.deb convert a camelized string into a lowercased one with a custom separator
node-decompress-response_3.3.0-1_all.deb Decompress a HTTP response if needed
node-deep-eql_3.0.1-1_all.deb Improved deep equality testing for Node.js and the browser
node-deep-equal_1.0.1-1_all.deb node's assert.deepEqual algorithm
node-deep-extend_0.4.1-1_all.deb Recursive object extending
node-deep-for-each_1.0.6+dfsg-1_all.deb Recursively iterates collection values (arrays and objects)
node-deep-is_0.1.3-1_all.deb node's assert.deepEqual algorithm except for NaN being equal to NaN
node-defaults_1.0.3-1_all.deb merge single level defaults over a config object
node-define-property_2.0.2-1_all.deb Define property on an object
node-defined_1.0.0-1_all.deb return the first argument that is `!== undefined`
Advertisement
Advertisement