Skip to main content

@md/totp@0.0.0
Built and signed on GitHub Actions

Generate TOTP passwords using a TOTP token

This package works with Deno, BrowsersIt is unknown whether this package works with Cloudflare Workers, Node.js, Bun
It is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Node.js
This package works with Deno
It is unknown whether this package works with Bun
This package works with Browsers
JSR Score
100%
Published
3 weeks ago (0.0.0)

@md/totp

A function to generate TOTP values using a base64 encoded token

Example

ts``` import getTotp from "@md/totp";

const token = "ABCDEFGHIJKLMNOPQRSTUVWXYZ234567ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"; const totp = getTotp(token); // e.g. "431987"

Built and signed on
GitHub Actions
View transparency log

Add Package

deno add jsr:@md/totp

Import symbol

import * as mod from "@md/totp";

---- OR ----

Import directly with a jsr specifier

import * as mod from "jsr:@md/totp";

Add Package

npx jsr add @md/totp

Import symbol

import * as mod from "@md/totp";

Add Package

yarn dlx jsr add @md/totp

Import symbol

import * as mod from "@md/totp";

Add Package

pnpm dlx jsr add @md/totp

Import symbol

import * as mod from "@md/totp";

Add Package

bunx jsr add @md/totp

Import symbol

import * as mod from "@md/totp";