sg-guard
v1.0.1
Published
Simple quick auth
Downloads
4
Readme
sg-guard
Simple quick auth
Installation
$ npm install sg-guard --save
Usage
'use strict'
const sgGuard = require('sg-guard')
{
const ThePassword = 'BigBigApple'
let guard = sgGuard(ThePassword)
// Ask use to input password
let ok = guard.ask()
if (!ok) {
throw new Error('Auth failed!')
}
}
License
This software is released under the Apache-2.0 License.