@undercroft/timespan
Version:
When dealing with time durations or intervals in JavaScript, it's often useful to have a reliable way to represent and manipulate them. The `Timespan` class provides a convenient and powerful solution for working with timespans in JavaScript.
112 lines (111 loc) • 3.55 kB
JSON
{
"name": "@undercroft/timespan",
"version": "1.1.0",
"description": "",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"publishConfig": {
"access": "public"
},
"files": [
"dist"
],
"author": "Michael Goodwin <mikejg101@icloud.com>",
"license": "MIT",
"homepage": "https://github.com/mikejg101/timespan",
"repository": {
"type": "git",
"url": "git@github.com:mikejg101/timespan.git"
},
"keywords": [
"timespan",
"duration",
"date",
"time",
"datetime",
"timeframe",
"interval",
"javascript",
"typescript",
"time parser",
"time formatter",
"human-readable",
"date math",
"date utilities",
"date calculation",
"library",
"esm",
"umd",
"node",
"browser",
"undercroft"
],
"bugs": {
"url": "https://github.com/mikejg101/timespan/issues"
},
"jest-junit": {
"outputDirectory": "./reports",
"outputName": "junit.xml"
},
"scripts": {
"_postinstall": "husky install",
"prepublishOnly": "pinst --disable && npm run test:dist",
"postpublish": "pinst --enable",
"build": "npm run clean && tsup src/index.ts --dts --format esm,cjs --minify --sourcemap --out-dir dist && npm run build:umd",
"build:umd": "rollup -c",
"license-check": "ts-node tools/undertools.ts licenses-check",
"dep-check": "ts-node tools/undertools.ts dependencies-check",
"clean": "ts-node tools/undertools.ts clean",
"changelog": "ts-node tools/undertools.ts changelog",
"package": "npm run build && npm pack",
"no-console": "ts-node tools/undertools.ts no-console",
"test:dist": "npm run build && ts-node tools/undertools.ts test:distribution",
"test": "jest --no-cache --runInBand",
"test:cov": "jest --coverage --no-cache --runInBand",
"test:junit": "cross-env JEST_JUNIT_CLASSNAME={filepath} jest --reporters=jest-junit",
"test:ci": "cross-env JEST_JUNIT_CLASSNAME={filepath} jest --coverage --no-cache --runInBand --reporters=default --reporters=jest-junit",
"addscope": "ts-node tools/undertools.ts update name @undercroft/timespan",
"badge:cov": "npx lcov-badge-generator -o ./badges/coverage.svg ./coverage/lcov.info",
"check": "./.husky/pre-commit",
"sandbox": "ts-node ./sandbox.ts",
"size": "size-limit"
},
"devDependencies": {
"@codecov/rollup-plugin": "^1.9.0",
"@commitlint/cli": "^19.8.0",
"@commitlint/config-conventional": "^13.1.0",
"@rollup/plugin-commonjs": "^28.0.3",
"@rollup/plugin-node-resolve": "^16.0.1",
"@rollup/plugin-terser": "^0.4.4",
"@size-limit/preset-small-lib": "^11.2.0",
"@swc/core": "^1.11.20",
"@types/intersect": "^1.0.0",
"@types/jest": "^27.0.1",
"@types/semver": "^7.5.0",
"@typescript-eslint/eslint-plugin": "^4.31.1",
"@typescript-eslint/parser": "^4.31.1",
"cross-env": "^7.0.3",
"depcheck": "^1.4.3",
"dotenv": "^16.0.3",
"eslint": "^7.32.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-jsdoc": "^44.2.5",
"eslint-plugin-no-underscore": "^0.2.1",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-sonarjs": "^0.19.0",
"husky": "^7.0.2",
"intersect": "^1.0.1",
"jest": "^27.2.0",
"jest-junit": "^16.0.0",
"license-compatibility-checker": "^0.3.0",
"pinst": "^2.1.6",
"prettier": "^2.4.0",
"semver": "^7.5.1",
"size-limit": "^11.2.0",
"ts-jest": "^27.0.5",
"ts-loader": "^9.2.5",
"ts-node": "^10.9.1",
"tsup": "^8.4.0",
"typescript": "^4.9.5"
}
}