Skip to content

Commit

Permalink
refactor: Move CLI into standalone package
Browse files Browse the repository at this point in the history
  • Loading branch information
jhermsmeier committed Mar 6, 2019
1 parent 78ee0ad commit b408b5b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 49 deletions.
16 changes: 6 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ HMAC-Based One-Time Password (HOTP), and Time-Based One-Time Password (TOTP) Alg
$ npm install --save hotp
```

## Changelog

- **v3.0.0**: Removed CLI utilities – now to be found at [jhermsmeier / hotp-totp-cli](https://github.com/jhermsmeier/hotp-totp-cli)
- **v2.0.0**: Added TOTP implementation
- **v1.0.0**: Initial release

## Usage

### HOTP
Expand Down Expand Up @@ -62,16 +68,6 @@ var token = hotp.totp( key, { digits: 8 })
console.log( token ) // > '86247382'
```

## CLI Usage

```console
hotp <key> <counter> [digits=6]
```

```console
totp <key> [digits=6]
```

## References

- [RFC 4226, HOTP: An HMAC-Based One-Time Password Algorithm](https://tools.ietf.org/html/rfc4226)
Expand Down
18 changes: 0 additions & 18 deletions bin/hotp

This file was deleted.

17 changes: 0 additions & 17 deletions bin/totp

This file was deleted.

4 changes: 0 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@
"time-based"
],
"main": "lib/hotp",
"bin": {
"hotp": "bin/hotp",
"totp": "bin/totp"
},
"scripts": {
"test": "mocha"
},
Expand Down

0 comments on commit b408b5b

Please sign in to comment.