simple-htpasswd-auth

1.0.0 • Public • Published

htpasswd-auth Build Status

read/write htpasswd files

Setup

npm install --save simple-htpasswd-auth

Checking if a password is valid

const htpasswd = require('htpasswd-auth')
const file = fs.readFileSync('./path-to-htpasswd')
 
htpasswd.authenticate('username', 'password', file)
  .then(function (auth) {
    // auth is true if the password is valid
  })

Readme

Keywords

Package Sidebar

Install

npm i simple-htpasswd-auth

Weekly Downloads

1

Version

1.0.0

License

ISC

Unpacked Size

140 kB

Total Files

13

Last publish

Collaborators

  • angryunicorn