UNPKG

relative-time

Version:

Formats JavaScript dates to relative time strings (e.g., "3 hours ago")

58 lines (57 loc) 1.46 kB
{ "name": "relative-time", "version": "1.0.0", "description": "Formats JavaScript dates to relative time strings (e.g., \"3 hours ago\")", "main": "dist/relative-time.js", "files": [ "dist/", "getting_started.js", "LICENSE-MIT", "README.md", "src/" ], "repository": { "type": "git", "url": "git+ssh://git@github.com/rxaviers/relative-time.git" }, "keywords": [ "intl", "i18n", "relative", "format", "date", "time", "distance" ], "author": { "name": "Rafael Xavier de Souza", "email": "rxaviers@gmail.com", "url": "http://rafael.xavier.blog.br" }, "license": "MIT", "bugs": { "url": "https://github.com/rxaviers/relative-time/issues" }, "homepage": "https://github.com/rxaviers/relative-time#readme", "scripts": { "test": "eslint --ext .js src && mocha", "build": "npm test && mkdir -p dist && rm -f dist/* && echo Building dist/relative-time.js && babel src/relative-time.js -o dist/relative-time.js && echo Done" }, "devDependencies": { "babel-cli": "^6.7.7", "babel-core": "^6.7.7", "babel-eslint": "^6.0.4", "babel-preset-es2015": "^6.6.0", "chai": "^3.5.0", "cldr-data": ">=29.0.1", "eslint": "^3.18.0", "eslint-config-defaults": "^9.0.0", "iana-tz-data": ">=2017.1.0", "mocha": "^2.4.5", "sinon": "^1.17.3" }, "dependencies": { "globalize": "^1.1.1", "zoned-date-time": "^1.0.0" } }