kennitala-utility
Version:
Utility functions for icelandic social security numbers (kennitolur).
63 lines (62 loc) • 1.88 kB
JSON
{
"name": "kennitala-utility",
"version": "6.1.2",
"description": "Utility functions for icelandic social security numbers (kennitolur).",
"main": "./dist/cjs/index.js",
"module": "./dist/esm/index.js",
"types": "./dist/cjs/index.d.ts",
"exports": {
".": {
"import": {
"types": "./dist/esm/index.d.ts",
"default": "./dist/esm/index.js"
},
"require": {
"types": "./dist/cjs/index.d.ts",
"default": "./dist/cjs/index.js"
}
}
},
"scripts": {
"build": "npm run clean && npm run compile",
"ci": "npm run clean && npm run compile && npm run test",
"clean": "rm -rf dist",
"compile:cjs": "tsc -p tsconfig.cjs.json",
"compile:esm": "tsc -p tsconfig.esm.json",
"compile": "npm run compile:cjs && npm run compile:esm && npm run copy-package-jsons",
"copy-package-jsons": "echo '{\"type\":\"commonjs\"}' > dist/cjs/package.json && echo '{\"type\":\"module\"}' > dist/esm/package.json",
"format": "prettier --write 'src/*.ts'",
"lint": "eslint .",
"lintfix": "eslint --fix .",
"prepublishOnly": "npm run ci",
"tdd": "node --test --import tsx --watch src/*.spec.ts",
"test": "node --test --import tsx src/*.spec.ts"
},
"keywords": [
"kennitala",
"kennitolur",
"kennitölur",
"identitynumber"
],
"author": "Tryggingamidstodin <bt.hugbunadargerd@tm.is> (https://github.com/tryggingamidstodin/)",
"files": [
"dist"
],
"license": "MIT",
"devDependencies": {
"@eslint/js": "^9.15.0",
"@types/node": "^22.9.1",
"eslint": "^9.15.0",
"prettier": "^3.3.3",
"tsx": "^4.19.2",
"typescript": "^5.6.3",
"typescript-eslint": "^8.14.0"
},
"repository": {
"type": "git",
"url": "git+https://github.com/tryggingamidstodin/kennitala-utility.git"
},
"dependencies": {
"oops-error": "^2.5.0"
}
}