UNPKG

short-time-ago

Version:

A small, no dependencies, Typescript utility to describe time differences in a human readable format (for example, '1 minute ago')

90 lines (89 loc) 2.52 kB
{ "name": "short-time-ago", "description": "A small, no dependencies, Typescript utility to describe time differences in a human readable format (for example, '1 minute ago')", "version": "2.0.0", "author": "velut", "license": "MIT", "amdName": "short-time-ago", "source": "./src/index.ts", "main": "./dist/index.js", "types": "./dist/index.d.ts", "module": "./dist/index.module.js", "esmodule": "./dist/index.modern.js", "browser": "./dist/index.umd.js", "unpkg": "./dist/index.umd.js", "exports": { "require": "./dist/index.js", "import": "./dist/index.modern.js", "browser": "./dist/index.umd.js", "default": "./dist/index.js" }, "sideEffects": false, "files": [ "dist", "src" ], "engines": { "node": ">=10" }, "repository": { "type": "git", "url": "https://github.com/velut/node-short-time-ago" }, "bugs": { "url": "https://github.com/velut/node-short-time-ago/issues" }, "scripts": { "start": "tsdx watch", "build:tsdx": "tsdx build --format cjs,esm,umd", "build": "microbundle --strict", "test": "tsdx test --runInBand", "test:cov": "tsdx test --runInBand --coverage", "test:watch": "tsdx test --runInBand --watchAll --coverage", "test:ci": "tsdx test --runInBand --ci --coverage", "lint": "tsdx lint src test", "prepare": "yarn build", "pre-push": "yarn && yarn lint && yarn build && yarn test:cov", "semantic-release": "semantic-release", "release": "np" }, "peerDependencies": {}, "husky": { "hooks": { "pre-commit": "yarn lint", "pre-push": "yarn pre-push" } }, "prettier": { "printWidth": 80, "semi": true, "singleQuote": true, "tabWidth": 4, "trailingComma": "es5", "arrowParens": "always" }, "np": { "branch": "main" }, "devDependencies": { "eslint-plugin-prettier": "3.3.0", "husky": "4.3.6", "microbundle": "0.13.0", "np": "7.1.0", "prettier": "2.2.1", "semantic-release": "17.3.1", "tsdx": "0.14.1", "tslib": "2.0.3", "typescript": "4.1.3" }, "keywords": [ "time", "ago", "date", "format", "relative", "human", "readable", "typescript" ] }