Skip to content

HumanDesign/node-basicauth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Basic Auth Middleware for Express

Download

The source is available for download from GitHub. Alternatively, you can install using Node Package Manager (npm):

npm install node-basicauth

Example

app = express()
basicAuth = require 'node-basicauth'

// you can add as many usernames and passwords as you want
app.use(basicAuth({
	'username1' : 'password1'
	'username2' : 'password2'
}))

Development

Dependencies

This command needs to be ran first if CoffeeScript is not installed on your system

  • run sudo npm install -g coffee-script

Setup

Install all of the dependencies

  • run npm install

The following command will watch and compile Coffeescript

  • run gulp

About

Simple Basic Auth Middleware for Express

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published