{"_id":"@14kay/totp-auth","name":"@14kay/totp-auth","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.1":{"name":"@14kay/totp-auth","type":"module","version":"0.0.1","packageManager":"pnpm@8.4.0","description":"100% JS's TOTP authenticator with no dependencies","author":{"name":"14K","url":"https://github.com/14Kay"},"license":"MIT","homepage":"https://github.com/14Kay/totp-auth#readme","repository":{"type":"git","url":"git+https://github.com/14Kay/totp-auth.git"},"bugs":{"url":"https://github.com/14Kay/totp-auth/issues"},"keywords":["TOTP","2FA","authenticator"],"sideEffects":false,"exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"main":"./dist/index.js","module":"./dist/index.js","types":"./dist/index.d.ts","typesVersions":{"*":{"*":["./dist/*","./dist/index.d.ts"]}},"scripts":{"build":"tsup","dev":"tsup --watch","lint":"eslint .","publish":"npm version patch && npm publish --access public","minor":"npm version minor && npm publish --access public","major":"npm version major && npm publish --access public","start":"esno src/index.ts","test":"vitest","typecheck":"tsc --noEmit","prepare":"simple-git-hooks"},"devDependencies":{"@antfu/eslint-config":"^2.6.4","@types/node":"^20.11.30","eslint":"^8.56.0","esno":"^4.0.0","pnpm":"^8.4.0","simple-git-hooks":"^2.9.0","tsup":"^8.0.2","typescript":"^5.3.3","vitest":"^1.3.1","lint-staged":"^15.2.2"},"simple-git-hooks":{"pre-commit":"pnpm lint-staged"},"lint-staged":{"*":"eslint --fix"},"_id":"@14kay/totp-auth@0.0.1","gitHead":"50c1823f2d909d20cad640f620f42f511138cd14","_nodeVersion":"16.20.0","_npmVersion":"9.8.1","dist":{"integrity":"sha512-J4Pypveskcrky4ZvpWSc9UChavg67hnLkPtxeQXieHRdNwoCDIlhoFos0uxi+LuLiyq7eK4iHe1A+EoLfcG5Xg==","shasum":"c32e132852d7aef1bba151a04c223401691ec952","tarball":"https://registry.npmjs.org/@14kay/totp-auth/-/totp-auth-0.0.1.tgz","fileCount":7,"unpackedSize":19248,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDP+kO+v1x3B9mZcFLhuCIz9M+0OHMW4LSRnUuqhc6RbAIgBTP51u3p3bpv7r3v1Mn3yGibEF9CNQSmUCsGBy5Hd2g="}]},"_npmUser":{"name":"14kay","email":"rsndm.14k@gmail.com"},"directories":{},"maintainers":[{"name":"14kay","email":"rsndm.14k@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/totp-auth_0.0.1_1713005519574_0.9394535317636017"},"_hasShrinkwrap":false}},"time":{"created":"2024-04-13T10:51:59.472Z","0.0.1":"2024-04-13T10:51:59.760Z","modified":"2024-04-13T10:52:00.077Z"},"maintainers":[{"name":"14kay","email":"rsndm.14k@gmail.com"}],"description":"100% JS's TOTP authenticator with no dependencies","homepage":"https://github.com/14Kay/totp-auth#readme","keywords":["TOTP","2FA","authenticator"],"repository":{"type":"git","url":"git+https://github.com/14Kay/totp-auth.git"},"author":{"name":"14K","url":"https://github.com/14Kay"},"bugs":{"url":"https://github.com/14Kay/totp-auth/issues"},"license":"MIT","readme":"<!--\n * @Description: \n * @Author: 14K\n * @Date: 2024-04-13 11:28:12\n * @LastEditTime: 2024-04-13 18:44:24\n * @LastEditors: 14K\n-->\n# totp-auth\n\n[![npm version][npm-version-src]][npm-version-href]\n[![npm downloads][npm-downloads-src]][npm-downloads-href]\n[![bundle][bundle-src]][bundle-href]\n[![JSDocs][jsdocs-src]][jsdocs-href]\n\n100% JS's TOTP authenticator with <strong>no dependencies.</strong> You can use it in any javascript environment\n\n\n## Quick Start\n\n```bash\nnpm install @14kay/totp-auth --save\n```\n\n```js\n    import TOTPAuth from \"@14kay/totp-auth\"\n\n    const secret = \"JBSWY3DPEHPK3PXP\"\n    const code = TOTPAuth.totp(secret) // 666666\n```\n### Get time remaining\n\n```js\n    const timeRemaining = OTPAuth.timeRemaining() // 15\n```\n### code Verify\n\n```js\n    const isLegal = OTPAuth.totpVerify(\"123456\") // true or false\n```\n\n## License\n\n[MIT](./LICENSE) License © 2024-PRESENT [14K](https://github.com/14Kay)\n\n<!-- Badges -->\n\n[npm-version-src]: https://img.shields.io/npm/v/@14kay/totp-auth?style=flat&colorA=080f12&colorB=1fa669\n[npm-version-href]: https://npmjs.com/package/@14kay/totp-auth\n[npm-downloads-src]: https://img.shields.io/npm/dm/@14kay/totp-auth?style=flat&colorA=080f12&colorB=1fa669\n[npm-downloads-href]: https://npmjs.com/package/@14kay/totp-auth\n[bundle-src]: https://img.shields.io/bundlephobia/minzip/@14kay/totp-auth?style=flat&colorA=080f12&colorB=1fa669&label=minzip\n[bundle-href]: https://bundlephobia.com/result?p=@14kay/totp-auth\n[license-src]: https://img.shields.io/github/license/antfu/@14kay/totp-auth.svg?style=flat&colorA=080f12&colorB=1fa669\n[jsdocs-src]: https://img.shields.io/badge/jsdocs-reference-080f12?style=flat&colorA=080f12&colorB=1fa669\n[jsdocs-href]: https://www.jsdocs.io/package/@14kay/totp-auth","readmeFilename":"README.md"}