marshmallows
v1.0.0
Published
A drop-in Basic Auth middleware for Express
Downloads
4
Readme
Marshmallows
Easily add basic auth to any express app.
- Install in your project:
npm i marshmallows --save
. - Require into your app.
const auth = require('marshmallows');
- Use for every request in your app via.
app.use(auth, express.static('./dist'));
- Add
ENV
variablesUSER
andPASS
for credentials. - Run your app with
NODE_ENV=production
.