UNPKG

@alessiofrittoli/date-utils

Version:

Lightweight TypeScript date utility functions library

130 lines (129 loc) 4.37 kB
{ "name": "@alessiofrittoli/date-utils", "version": "4.0.0", "description": "Lightweight TypeScript date utility functions library", "author": { "name": "Alessio Frittoli", "email": "info@alessiofrittoli.it", "url": "https://alessiofrittoli.it" }, "license": "MIT", "funding": [ { "type": "github", "url": "https://github.com/sponsors/alessiofrittoli" } ], "keywords": [ "dates", "timezones", "datetime", "local-datetime" ], "homepage": "https://github.com/alessiofrittoli/date-utils#readme", "bugs": { "url": "https://github.com/alessiofrittoli/date-utils/issues", "email": "info@alessiofrittoli.it" }, "repository": { "type": "git", "url": "git+https://github.com/alessiofrittoli/date-utils.git" }, "main": "./dist/index.js", "module": "./dist/index.mjs", "types": "./dist/index.d.ts", "files": [ "dist" ], "exports": { ".": { "types": "./dist/index.d.ts", "import": "./dist/index.mjs", "require": "./dist/index.js" }, "./format": { "types": "./dist/format/index.d.ts", "import": "./dist/format/index.mjs", "require": "./dist/format/index.js" }, "./timezones": { "types": "./dist/timezones/index.d.ts", "import": "./dist/timezones/index.mjs", "require": "./dist/timezones/index.js" }, "./timezones/identifiers": { "types": "./dist/timezones/identifiers.d.ts", "import": "./dist/timezones/identifiers.mjs", "require": "./dist/timezones/identifiers.js" }, "./timezones/types": { "types": "./dist/timezones/types.d.ts", "import": "./dist/timezones/types.mjs", "require": "./dist/timezones/types.js" }, "./common": { "types": "./dist/common.d.ts", "import": "./dist/common.mjs", "require": "./dist/common.js" }, "./utils": { "types": "./dist/utils.d.ts", "import": "./dist/utils.mjs", "require": "./dist/utils.js" } }, "sideEffects": false, "scripts": { "//1a": "*********************************************************************", "//1b": "******************** DEV - BUILD - LINT - RELEASE *******************", "//1c": "*********************************************************************", "dev": "cross-env NODE_ENV=development tsup --watch", "build:prod": "cross-env NODE_ENV=production tsup", "build": "pnpm lint && pnpm test:ci && pnpm build:prod", "lint": "eslint", "release": "node scripts/release.js --verbose --npm", "//2a": "*********************************************************************", "//2b": "***************************** UNIT TESTS ****************************", "//2c": "*********************************************************************", "test": "jest --verbose", "test:watch": "jest --watchAll --verbose", "test:ci": "jest --ci --verbose", "//3a": "*********************************************************************", "//3b": "************************ UNIT TESTS COVERAGE ************************", "//3c": "*********************************************************************", "test:coverage": "pnpm test:watch --coverage", "test:coverage:ci": "pnpm test:ci --coverage", "test:serve-coverage": "http-server ./coverage/lcov-report --gzip true -p 0 -o --silent", "test:coverage:serve": "concurrently --prefix none --kill-others \"pnpm test:coverage\" \"pnpm test:serve-coverage\"", "//4a": "*********************************************************************", "//4b": "************************ TARGETED UNIT TESTS ************************", "//4c": "*********************************************************************", "test:common": "pnpm test:watch common.test.ts", "test:format": "pnpm test:watch format.test.ts", "test:timezones": "pnpm test:watch timezones.test.ts", "test:utils": "pnpm test:watch utils.test.ts" }, "devDependencies": { "@alessiofrittoli/node-scripts": "^3.0.0", "@eslint/js": "^9.31.0", "@jest/globals": "^30.0.4", "@types/jest": "^30.0.0", "@types/node": "^24.0.15", "concurrently": "^9.2.0", "cross-env": "^7.0.3", "dotenv": "^17.2.0", "eslint": "^9.31.0", "globals": "^16.3.0", "http-server": "^14.1.1", "jest": "^30.0.4", "ts-jest": "^29.4.0", "ts-node": "^10.9.2", "tsup": "^8.5.0", "typescript": "^5.8.3", "typescript-eslint": "^8.37.0" }, "dependencies": { "@alessiofrittoli/math-utils": "^1.14.0", "@alessiofrittoli/type-utils": "^1.8.0" } }