Open scazzy opened 4 years ago
import notp from 'notp' seem to be returning undefined, but const notp = requires('notp') seem to return {hotp, totp} properly.
it's pretty weird but this does exist.
Node: 12.16.3 notp: ^2.0.3
import notp from 'notp'
above Imports default from the specified lib, as no default is defined in the lib, you'll have to use named import
default
import {hotp,notp} from 'notp'
or
import * as notp from 'notp'
import notp from 'notp' seem to be returning undefined, but const notp = requires('notp') seem to return {hotp, totp} properly.
it's pretty weird but this does exist.
Node: 12.16.3 notp: ^2.0.3