Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-otp

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-otp - npm Package Compare versions

Comparing version 1.0.0-beta.1 to 1.0.0

11

package.json
{
"name": "node-otp",
"description": "Node.js One-Time Password",
"version": "1.0.0-beta.1",
"version": "1.0.0",
"license": "MIT",
"main": "./lib/index.js",
"types": "./lib/index.d.ts",
"author": {
"name": "Alessio Dionisi",
"email": "hello@adns.io"
},
"author": "Alessio Dionisi <hello@adns.io>",
"repository": "alessiodionisi/node-otp",

@@ -17,3 +14,4 @@ "keywords": [

"rfc4226",
"rfc6238"
"rfc6238",
"typescript"
],

@@ -23,3 +21,2 @@ "scripts": {

"test": "jest",
"test:coverage": "yarn run test --coverage",
"build": "tsc"

@@ -26,0 +23,0 @@ },

@@ -1,4 +0,26 @@

# Node.js One-Time Password
# Node OTP
[![NPMV](https://img.shields.io/npm/v/node-otp.svg?style=flat-square)](https://npmjs.org/package/node-otp)
[![Travis](https://img.shields.io/travis/adnsio/node-otp.svg?style=flat-square)](https://travis-ci.org/adnsio/node-otp)
[![Travis](https://img.shields.io/travis/adnsio/node-otp.svg?style=flat-square)](https://travis-ci.org/adnsio/node-otp)
Node.js One-Time Password library
### Features
- Zero Dependency
- TypeScript Definitions
- RFC4226 (HMAC One-Time Password)
- RFC6238 (Time-Based One-Time Password)
### Examples
```javascript
otp.hotp({
secret: '12345678901234567890'
})
```
```javascript
otp.totp({
secret: '12345678901234567890',
timestamp: new Date().getTime()
})
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc