Basic Auth Middleware for Express
npm install node-basicauthnpm install node-basicauth
coffeescript
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
$3
This command needs to be ran first if CoffeeScript is not installed on your system
* run
sudo npm install -g coffee-script$3
Install all of the dependencies
* run
npm installThe following command will watch and compile Coffeescript
* run
gulp`