upd: export all modules

This commit is contained in:
lancegin 2017-06-29 13:28:40 +08:00
parent b4fa527e4c
commit 38dd85dabf
5 changed files with 16 additions and 8 deletions

View File

@ -4,7 +4,7 @@
* @author : Gin (gin.lance.inside@hotmail.com)
*/
class Base32 {
export default class Base32 {
static decode() {
console.log("static Base32.decode");
}

View File

@ -5,7 +5,7 @@
import OTP from './otp';
class HOTP extends OTP {
export default class HOTP extends OTP {
/*
* Generate the OTP with the given count
*

View File

@ -5,8 +5,16 @@
* @Disc : a node module to generate and verify one-time passwords
*/
function jsotp(name) {
console.log(`Hello ${name}`);
}
import OTP from './otp';
import TOTP from './totp';
import HOTP from './hotp';
import Base32 from './base32';
import Util from './util';
exports.jsotp = jsotp
export {
OTP,
TOTP,
HOTP,
Base32,
Util
};

View File

@ -5,7 +5,7 @@
import OTP from './otp';
class TOTP extends OTP {
export default class TOTP extends OTP {
/*
* @param {secret}
* @type {String}

View File

@ -3,6 +3,6 @@
* @author : Gin (gin.lance.inside@hotmail.com)
*/
class Util {
export default class Util {
}