UNPKG

epoch-timeago

Version:

Convert Unix time to a relative time string e.g., "4 hours ago".

48 lines (47 loc) 1.28 kB
{ "name": "epoch-timeago", "version": "1.1.9", "author": "Simon Laroche <hi@simon.lc> (https://simon.lc)", "license": "MIT", "description": "Convert Unix time to a relative time string e.g., \"4 hours ago\".", "repository": "simonlc/epoch-timeago", "ava": { "require": [ "esm" ] }, "keywords": [ "timeago", "time", "ago", "epoch", "unix", "date", "relative", "timestamp", "milliseconds", "moment", "microformat" ], "main": "lib/index.js", "browser": "dist/index.js", "module": "es/index.js", "scripts": { "build": "yarn build:es && yarn build:commonjs && yarn build:dist", "build:es": "BABEL_ENV=es babel src/index.js --out-file es/index.js", "build:commonjs": "BABEL_ENV=commonjs babel src/index.js --out-file lib/index.js", "build:dist": "BABEL_ENV=umd babel src/index.js --out-file dist/index.js", "test": "yarn build && nyc ava -v", "coverage": "yarn build && nyc report --reporter=text-lcov | coveralls" }, "devDependencies": { "@babel/cli": "7.0.0-beta.44", "@babel/core": "7.0.0-beta.44", "@babel/preset-env": "7.0.0-beta.44", "ava": "0.25.0", "babel-minify": "0.4.3", "coveralls": "3.0.2", "esm": "3.0.69", "nyc": "12.0.2" } }