# mobilepass

> JavaScript implementation of the MobilePASS token client

Latest version **0.0.1** (published 2024-03-16) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install mobilepass
pnpm add mobilepass
yarn add mobilepass
bun add mobilepass
```

## Health

**Score 40/100 (D)** — status: abandoned.

Positive: esm support; no vulnerabilities; has provenance; high maintenance score.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2024-03-16 |
| First published | 2024-02-12 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | ESM |
| Node | >= 15.0.0 |
| Dependencies | 1 |
| Unpacked size | 61 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 1 |
| Author | Takashi Sato |
| Maintainers | tksst |

## Links

- npm: https://www.npmjs.com/package/mobilepass
- Repository: https://github.com/tksst/mobilepass-js
- Issues: https://github.com/tksst/mobilepass-js/issues
- npm.io page: https://npm.io/package/mobilepass

## Dependencies (1)

- [rfc4648](https://npm.io/package/rfc4648.md) 1.5.3

## Recent versions

- 0.0.1 (latest) — 2024-03-16
- 0.0.0-alpha.1 (alpha) — 2024-02-24
- 0.0.0 — 2024-02-24
- 0.0.0-alpha.0 — 2024-02-13
- 0.0.0-development — 2024-02-12

## README

# mobilepass-js

This is a JavaScript implementation of the MobilePASS token client.

## Usage

### install

```bash
npm install mobilepass
```

```bash
pnpm add mobilepass
```

```bash
bun add mobilepass
```

### code (ESModule)

```js
import { generateOtp } from "mobilepass";

const actcode = "XUU75-RROTT-Y5IP6-U3BMV";
const counter = 1;

const otp = await generateOtp(actcode, counter);
console.log(`OTP: ${otp}`);
```

### code (CommonJS)

```js
const { generateOtp } = require("mobilepass");

const actcode = "XUU75-RROTT-Y5IP6-U3BMV";
const counter = 1;

(async () => {
  const otp = await generateOtp(actcode, counter);

  console.log(`OTP: ${otp}`);
})();
```

### Compatibility

- Node.js 15.0.0 and later
- Any other JavaScript environment that supports WebCrypto API

---
_Source: https://npm.io/package/mobilepass · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
