itty-time
Version:
Ultra-small (~390 bytes) library for TTL date math and converting ms durations to and from strings.
88 lines (87 loc) • 2.35 kB
JSON
{
"name": "itty-time",
"version": "1.0.6",
"description": "Ultra-small (~390 bytes) library for TTL date math and converting ms durations to and from strings.",
"main": "./index.js",
"module": "./index.mjs",
"types": "./index.d.ts",
"exports": {
".": {
"import": "./index.mjs",
"require": "./index.js",
"types": "./index.d.ts"
},
"./datePlus": {
"import": "./datePlus.mjs",
"require": "./datePlus.js",
"types": "./datePlus.d.ts"
},
"./duration": {
"import": "./duration.mjs",
"require": "./duration.js",
"types": "./duration.d.ts"
},
"./ms": {
"import": "./ms.mjs",
"require": "./ms.js",
"types": "./ms.d.ts"
},
"./seconds": {
"import": "./seconds.mjs",
"require": "./seconds.js",
"types": "./seconds.d.ts"
}
},
"scripts": {
"dev": "vitest --coverage --reporter verbose",
"lint": "yarn run eslint src",
"test": "vitest run --coverage",
"verify": "echo 'verifying module...' && yarn build && yarn test",
"prerelease": "yarn verify",
"prerelease:next": "yarn verify",
"prebuild": "rimraf dist && mkdir dist",
"build": "rollup -c",
"release": "release --tag --push --patch --src=dist",
"release:next": "release --tag --push --type=next --src=dist"
},
"keywords": [
"humanize",
"duration",
"ttl",
"ms",
"months",
"time",
"dates",
"string",
"readable"
],
"repository": {
"type": "git",
"url": "git+https://github.com/kwhitley/itty-time.git"
},
"author": "Kevin R. Whitley <krwhitley@gmail.com>",
"license": "MIT",
"bugs": {
"url": "https://github.com/kwhitley/itty-time/issues"
},
"devDependencies": {
"@rollup/plugin-multi-entry": "^6.0.1",
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-typescript": "^11.1.6",
"@typescript-eslint/eslint-plugin": "^7.7.0",
"@typescript-eslint/parser": "^7.7.0",
"@vitest/coverage-v8": "^1.5.0",
"coveralls": "^3.1.1",
"eslint": "^8.57.0",
"fs-extra": "^11.2.0",
"globby": "^14.0.1",
"jsdom": "^24.0.0",
"rimraf": "^5.0.5",
"rollup": "^4.14.3",
"rollup-plugin-bundle-size": "^1.0.3",
"rollup-plugin-copy": "^3.5.0",
"typescript": "^5.4.5",
"vitest": "^1.5.0",
"yarn-release": "^1.10.6"
}
}