How to Install and Uninstall node-date-now Package on Ubuntu 21.10 (Impish Indri)

Last updated: March 29,2024

1. Install "node-date-now" package

Please follow the guidance below to install node-date-now on Ubuntu 21.10 (Impish Indri)

$ sudo apt update $ sudo apt install node-date-now

2. Uninstall "node-date-now" package

In this section, we are going to explain the necessary steps to uninstall node-date-now on Ubuntu 21.10 (Impish Indri):

$ sudo apt remove node-date-now $ sudo apt autoclean && sudo apt autoremove

3. Information about the node-date-now package on Ubuntu 21.10 (Impish Indri)

Package: node-date-now
Architecture: all
Version: 1.0.1-3
Priority: optional
Section: universe/web
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Javascript Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 17
Depends: nodejs
Filename: pool/universe/n/node-date-now/node-date-now_1.0.1-3_all.deb
Size: 3888
MD5sum: 75980ecaddd1cd117d363b71a879bd6b
SHA1: 2e85d3dce74a5f722e43365f2b062f65e8dd5a5e
SHA256: 1d382ccd790b1c9355ed7f87310b1e92904bf6767097239a59d6a318e67bb8d4
SHA512: 326faffc00fb1d57547c55accbe96ab38afd4fd67cf8d8ec26c1bbe63a49c3ac2a5ed57280878c17ef566abaaf7c868122a5fe227b7093657421383bb96baec0
Homepage: https://github.com/Raynos/date-now
Description-en: 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.
Description-md5: a2bef18e9ee62b1d0a74b651864b0bcd