@colingreybosh/otp-lib
Version:
A TypeScript library for generating, validating, and managing one-time passwords (OTP) for authentication purposes.
93 lines (92 loc) • 2.68 kB
JSON
{
"name": "@colingreybosh/otp-lib",
"version": "0.0.4",
"description": "A TypeScript library for generating, validating, and managing one-time passwords (OTP) for authentication purposes.",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"homepage": "https://github.com/ColinGreybosh/otp#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/ColinGreybosh/otp.git"
},
"bugs": {
"url": "https://github.com/ColinGreybosh/otp/issues"
},
"scripts": {
"build": "tsc -p tsconfig.build.json",
"build:dev": "tsc -p tsconfig.dev.json",
"clean": "rm -rf dist",
"dev": "tsc -p tsconfig.dev.json --watch",
"lint": "eslint . --ext .ts,.js,.mjs,.cjs",
"lint:fix": "eslint . --ext .ts,.js,.mjs,.cjs --fix",
"format": "prettier --write .",
"format:check": "prettier --check .",
"type-check": "tsc --noEmit",
"type-check:watch": "tsc --noEmit --watch",
"test": "jest",
"test:watch": "jest --watch",
"test:coverage": "jest --coverage",
"test:ci": "jest --coverage --watchAll=false --passWithNoTests",
"validate": "npm run type-check && npm run lint && npm run format:check && npm run test:ci",
"prepare": "husky install",
"prepublishOnly": "npm run clean && npm run build && npm run validate"
},
"keywords": [
"typescript",
"otp",
"totp",
"hotp",
"authentication",
"security",
"two-factor",
"2fa",
"one-time-password",
"google-authenticator",
"rfc6238",
"rfc4226"
],
"files": [
"dist/**/*",
"README.md",
"LICENSE"
],
"author": "Colin Greybosh",
"license": "MIT",
"devDependencies": {
"@eslint/js": "^9.27.0",
"@jest/globals": "^29.7.0",
"@types/jest": "^29.5.14",
"@types/node": "^22.15.21",
"@typescript-eslint/eslint-plugin": "^8.32.1",
"@typescript-eslint/parser": "^8.32.1",
"eslint": "^9.27.0",
"eslint-config-prettier": "^10.1.5",
"eslint-import-resolver-typescript": "^4.3.5",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-prettier": "^5.4.0",
"eslint-plugin-security": "^3.0.1",
"eslint-plugin-unused-imports": "^4.1.4",
"globals": "^16.1.0",
"husky": "^9.1.7",
"jest": "^29.7.0",
"jest-environment-node": "^29.7.0",
"lint-staged": "^16.0.0",
"prettier": "^3.5.3",
"ts-jest": "^29.3.4",
"ts-node": "^10.9.2",
"typescript": "^5.8.3",
"typescript-eslint": "^8.32.1"
},
"lint-staged": {
"*.{ts,tsx,js,jsx,mjs,cjs}": [
"eslint --fix",
"prettier --write"
],
"*.{json,md,yml,yaml}": [
"prettier --write"
]
},
"dependencies": {
"hi-base32": "^0.5.1"
}
}