2factor-sdk
Version:
A TypeScript SDK for sending and validating OTPs with support for rate limiting.
71 lines (70 loc) • 1.62 kB
JSON
{
"name": "2factor-sdk",
"version": "1.0.7",
"description": "A TypeScript SDK for sending and validating OTPs with support for rate limiting.",
"type": "module",
"main": "./lib/index.js",
"module": "./lib/index.js",
"types": "./lib/index.d.ts",
"exports": {
".": {
"types": "./lib/index.d.ts",
"require": "./lib/index.js",
"import": "./lib/index.js",
"default": "./lib/index.js"
}
},
"scripts": {
"clean": "rimraf lib",
"build": "npm run clean && tsup src/index.ts --format esm,cjs --dts --clean --outDir lib",
"test": "jest",
"prepublishOnly": "npm run build",
"lint": "eslint . --ext .js,.mjs,.cjs,.ts",
"lint:fix": "eslint . --ext .js,.mjs,.cjs,.ts --fix"
},
"files": [
"lib",
"README.md"
],
"keywords": [
"2factor",
"2-factor",
"OTP",
"2factor-sdk",
"2-factor-sdk",
"authentication",
"rate-limiting",
"2factorin",
"otp-validation",
"two-factor-authentication",
"2fa",
"security",
"authentication-sdk",
"sms-otp",
"email-otp",
"otp-service",
"token-authentication",
"two-factor-api",
"2factor.in"
],
"author": "fateennisar",
"license": "MIT",
"dependencies": {
"@upstash/ratelimit": "^2.0.5",
"@upstash/redis": "^1.34.3",
"axios": "^1.7.9",
"clean": "^4.0.2",
"tsc": "^2.0.4",
"typescript": "^5.7.2",
"zod": "^3.24.1"
},
"devDependencies": {
"prettier": "^3.5.3",
"rimraf": "^6.0.1",
"tsup": "^8.0.1"
},
"repository": {
"type": "git",
"url": "https://github.com/fateenNisar/2factor"
}
}