timeago.js

v4.0.2
timeago.js is a simple library (only 1kb) to used to format datetime with `*** time ago` statement. eg: '3 hours ago'. localization supported.
timeago datetime *** time ago date javascript timeago

lint

eslint src/**/* __tests__/**/*

lint-staged

lint-staged

size

size-limit

test

jest

ci

npm run lint && npm run test && npm run size && lint-md .

build:umd

rimraf ./dist && rollup -c && cp -rf dist/ gh-pages && npm run size

build:cjs

rimraf ./lib && tsc --module commonjs --outDir lib

build:esm

rimraf ./esm && tsc --module ESNext --outDir esm

build

npm run build:cjs && npm run build:esm && npm run build:umd

prepublishOnly

npm run build
npm i timeago.js

Metadata

  • MIT
  • Whatever
  • hustcc
  • released 12/21/2019

Downloads