UNPKG

datetoken

Version:

Parse relative datetime tokens into date objects

84 lines (83 loc) 2.01 kB
{ "name": "datetoken", "version": "2.1.0", "description": "Parse relative datetime tokens into date objects", "type": "module", "main": "./dist/index.cjs", "module": "./dist/index.js", "types": "./dist/index.d.ts", "exports": { ".": { "import": "./dist/index.js", "require": "./dist/index.cjs", "types": "./dist/index.d.ts" }, "./package.json": "./package.json" }, "files": [ "dist", "dist-cjs" ], "engines": { "node": ">=18.0.0" }, "scripts": { "clean": "rimraf dist dist-cjs", "build": "tsup", "build:esm": "tsup --format esm", "build:cjs": "tsup --format cjs", "format": "prettier --write \"src/**/*.ts\"", "lint": "eslint src/**/*.ts", "lint:fix": "eslint src/**/*.ts --fix", "test": "TZ='UTC' vitest run", "test:watch": "TZ='UTC' vitest", "test:coverage": "TZ='UTC' vitest run --coverage", "prepare": "npm run build", "prepublishOnly": "npm test && npm run lint", "preversion": "npm run lint", "postversion": "git push && git push --tags", "version": "npm run format && git add -A src" }, "repository": { "type": "git", "url": "git+https://github.com/sonirico/datetoken.js.git" }, "keywords": [ "relative", "date", "token", "presets", "datetime", "parser", "now", "yesterday", "last week" ], "author": "sonirico", "license": "MIT", "bugs": { "url": "https://github.com/sonirico/datetoken.js/issues" }, "homepage": "https://github.com/sonirico/datetoken.js#readme", "dependencies": { "date-fns": "^4.1.0" }, "devDependencies": { "@types/node": "^22.0.0", "@typescript-eslint/eslint-plugin": "^8.35.0", "@typescript-eslint/parser": "^8.35.0", "eslint": "^9.29.0", "prettier": "^3.0.0", "rimraf": "^6.0.0", "tsup": "^8.5.0", "typescript": "^5.8.3", "vitest": "^3.2.4" }, "typesVersions": { "*": { "*": [ "dist/index.d.ts" ] } } }