package.json
{
"name": "totp-generator",
"version": "1.0.0",
"description": "Generate TOTP tokens from key",
"license": "MIT",
"author": "Magnus Bellstrand",
"homepage": "https://github.com/bellstrand/totp-generator",
"bugs": {
"url": "https://github.com/bellstrand/totp-generator/issues"
},
"keywords": [
"totp",
"time-based one-time password",
"generator",
"password",
"auth",
"authentication",
"google authenticator",
"oath",
"2-factor",
"two-factor"
],
"main": "./lib/cjs/index.js",
"module": "./lib/esm/index.js",
"exports": {
".": {
"import": {
"types": "./lib/esm/index.d.ts",
"default": "./lib/esm/index.js"
},
"require": {
"types": "./lib/cjs/index.d.ts",
"default": "./lib/cjs/index.js"
}
}
},
"repository": {
"type": "git",
"url": "git@github.com:bellstrand/totp-generator.git"
},
"scripts": {
"test": "jest",
"test:prettier": "prettier --check '**/*.js'",
"build": "rm -rf lib/* && yarn build:cjs && yarn build:esm && ./build-after.sh",
"build:cjs": "tsc --p tsconfig-esm.json",
"build:esm": "tsc --p tsconfig-cjs.json"
},
"dependencies": {
"jssha": "^3.3.1"
},
"devDependencies": {
"@types/jest": "^29.5.11",
"jest": "^29.7.0",
"prettier": "^3.2.4",
"ts-jest": "^29.1.2",
"typescript": "^5.3.3"
},
"files": [
"package.json",
"lib",
"LICENSE",
"README.md"
],
"jest": {
"preset": "ts-jest",
"testEnvironment": "node",
"moduleFileExtensions": [
"js",
"ts"
],
"coverageThreshold": {
"global": {
"branches": 100,
"functions": 100,
"lines": 100,
"statements": 100
}
}
}
}