htpasswd-auth
2.0.1 • Public • Published htpasswd-auth
read/write htpasswd files
Setup
npm install --save htpasswd-auth
Checking if a password is valid
var htpasswd = require('htpasswd-auth');
var file = fs.readFileSync('./path-to-htpasswd', 'utf-8');
htpasswd.authenticate('dickeyxxx', 'pass', file)
.then(function (auth) {
});
Versions
Current Tags
- VersionDownloads (Last 7 Days)
- 2.0.1
93
Version History
Package Sidebar
Install
Weekly Downloads