UNPKG

@bombaysoftwares/tskit

Version:

The @bombaysoftwares/tskit package provides a set of utility functions for working with dates and timestamps in JavaScript. These functions simplify common tasks such as date formatting, timestamp conversion, and JSON validation.

59 lines (58 loc) 2.02 kB
{ "name": "@bombaysoftwares/tskit", "version": "1.0.15", "description": "The @bombaysoftwares/tskit package provides a set of utility functions for working with dates and timestamps in JavaScript. These functions simplify common tasks such as date formatting, timestamp conversion, and JSON validation.", "main": "lib/index.js", "types": "lib/index.d.ts", "repository": { "type": "git", "url": "https://github.com/Edugem-Technologies/bombaysoftwares-tskit" }, "keywords": [ "utility", "functions", "date-time", "datetime", "date", "time", "parse", "format", "validate", "util", "helper", "date-time-format" ], "author": "Bombay Softwares", "license": "MIT", "bugs": { "url": "https://github.com/Edugem-Technologies/bombaysoftwares-tskit/issues" }, "homepage": "https://github.com/Edugem-Technologies/bombaysoftwares-tskit#readme", "devDependencies": { "@types/chai": "^4.3.5", "@types/mocha": "^10.0.1", "@types/node": "^20.3.2", "@types/uglify-js": "^3.17.1", "chai": "^4.3.7", "husky": "^8.0.3", "mocha": "^10.2.0", "ts-node": "^10.9.1", "typescript": "^5.1.3", "uglify-js": "^3.17.4" }, "scripts": { "test": "mocha --require ts-node/register test/**/*.ts", "build": "tsc", "prepare": "npm run build", "minifyTS": "tsc src/index.ts --outDir dist", "minifyJS": "uglifyjs dist/index.js --output dist/index.min.js", "version:add": "echo \"/*! @bombaysoftwares/tskit ! v - $(npm run version:extract --silent)\n * license : MIT\n Build time: $(date '+%m-%d-%Y %H:%M:%S')\n */\n$(cat dist/index.min.js)\" > dist/index.min.js", "production": "npm run minifyTS --silent && npm run minifyJS --silent", "version:bump": "npm version patch --no-git-tag-version --silent", "version:extract": "cat package.json | grep version | head -1 | awk -F: '{ print $2 }' | sed 's/[\",]//g' | tr -d '[[:space:]]'" }, "files": [ "lib/**/*", "dist/**/*" ] }