Nauseating Packaged Meat
Unleash awesomeness. Private packages, team management tools, and powerful integrations. Get started with npm Orgs »

nicedate

1.0.0 • Public • Published

nicedate

display nicely, but tersely formatted dates.

example

var nicedate = require('nicedate')
 
console.log(nicedate(Date.now()))
// just now
 
//one second ago
console.log(nicedate(Date.now() - 1000))
// 1s
 
//one week ago
console.log(nicedate(Date.now() - 1000*60*24*7))
// 1w
 
//etc...

License

MIT

Keywords

none

install

npm i nicedate

Downloadsweekly downloads

3

version

1.0.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability