UNPKG

@me7/totp

Version:

Time-Based One-Time Password Algorithm (RFC 6238)

15 lines (12 loc) 431 B
import { terser } from "rollup-plugin-terser"; import typscript from "rollup-plugin-typescript2"; const production = !process.env.ROLLUP_WATCH; export default { input: "src/index.ts", output: [ { file: "dist/bundle.js", format: "iife", name: "TOTP" }, { file: "dist/index.js", format: "cjs" }, { file: "dist/index.mjs", format: "es" } ], plugins: [typscript({ declaration: true }), production && terser()] };