htpasswd-auth

2.0.1 • Public • Published

htpasswd-auth Circle CI

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) {
  // auth is true if the password is valid
});

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.0.1
    93
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.0.1
    93
  • 2.0.0
    9
  • 1.0.0
    1

Package Sidebar

Install

npm i htpasswd-auth

Weekly Downloads

10

Version

2.0.1

License

ISC

Unpacked Size

4.77 kB

Total Files

15

Last publish

Collaborators

  • dickeyxxx