UNPKG

datetoken

Version:

Parse relative datetime tokens into date objects

63 lines (62 loc) 1.59 kB
{ "name": "datetoken", "version": "1.1.6", "description": "Parse relative datetime tokens into date objects", "main": "./index.js", "types": "./index.d.ts", "directories": { "test": "test" }, "engines": { "node": ">=8.10" }, "scripts": { "clean": "rm -rf ./models ./utils ./lexer ./parser ./ast ./exceptions ./token", "build": "npm run clean && tsc", "format": "prettier --write \"src/**/*.ts\"", "lint": "tslint -p tsconfig.json", "postversion": "git push && git push --tags", "prepare": "npm run build", "prepublishOnly": "npm test && npm run lint", "preversion": "npm run lint", "test": "TZ='UTC' npx jest --runInBand", "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/istanbul-lib-report": "^3.0.3", "@types/jest": "^29.5.14", "jest": "^29.7.0", "node-notifier": "^10.0.1", "minimatch": "^10.0.1", "prettier": "^3.4.2", "set-value": ">=4.1.0", "ts-jest": "^29.2.5", "tslint": "^6.1.3", "tslint-config-prettier": "^1.18.0", "typescript": "^5.7.2" } }