local-iso-dt
Version:
Convert the most common types of dates into ISO8601/RFC3339-formatted YYYY-MM-DDTHH:MM:SS strings in the local timezone
65 lines (64 loc) • 1.94 kB
JSON
{
"name": "local-iso-dt",
"version": "3.1.0",
"description": "Convert the most common types of dates into ISO8601/RFC3339-formatted YYYY-MM-DDTHH:MM:SS strings in the local timezone",
"keywords": [
"datetime",
"date",
"time",
"format",
"string",
"convert",
"local",
"timezone",
"ISO8601",
"RFC3339"
],
"repository": {
"type": "git",
"url": "https://github.com/dandv/local-iso-dt.git"
},
"license": "MIT",
"author": {
"name": "Dan Dascalescu",
"url": "https://github.com/dandv"
},
"type": "commonjs",
"exports": {
"node": {
"import": "./index.mjs",
"require": "./index.js"
},
"default": "./index.mjs"
},
"main": "index.js",
"files": [
"index.ts",
"index.mjs",
"index.js"
],
"scripts": {
"clean": "rm index*.js index.mjs",
"lint": "eslint index*.ts",
"prepublishOnly:cjs": "tsc index.ts --esModuleInterop --removeComments",
"prepublishOnly:esm": "tsc index.ts -t ES2015 --types node && mv index.js index.mjs",
"prepublishOnly": "npm run prepublishOnly:esm; npm run prepublishOnly:cjs",
"test": "jest"
},
"devDependencies": {
"@types/jest": "^26.0.13",
"@typescript-eslint/eslint-plugin": "^4.0.1",
"@typescript-eslint/parser": "^4.0.1",
"eslint": "^7.8.1",
"eslint-plugin-jest": "^24.0.0",
"jest": "^26.4.2",
"ts-jest": "^26.3.0",
"typescript": "^4.0.2"
},
"comments": {
"scripts": {
"prepublishOnly:esm": "TypeScript can't generate .mjs output directly (https://github.com/microsoft/TypeScript/issues/18442) and --outFile doesn't work with ES Modules"
},
"exports": "[Conditional exports](https://nodejs.org/api/esm.html#esm_conditional_exports) enable TypeScript code transpiled with ES Modules, to use named imports. TypeScript doesn't directly support .mjs input files - https://github.com/microsoft/TypeScript/issues/27957"
}
}