1.0.1 • Published 7 years ago
sg-guard v1.0.1
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.
Links
1.0.1
7 years ago