marshmallows

1.0.0 • Public • Published

Marshmallows

Easily add basic auth to any express app.

  1. Install in your project: npm i marshmallows --save.
  2. Require into your app. const auth = require('marshmallows');
  3. Use for every request in your app via. app.use(auth, express.static('./dist'));
  4. Add ENV variables USER and PASS for credentials.
  5. Run your app with NODE_ENV=production.

Readme

Keywords

Package Sidebar

Install

npm i marshmallows

Weekly Downloads

1

Version

1.0.0

License

ISC

Unpacked Size

1.67 kB

Total Files

3

Last publish

Collaborators

  • jon-sbx
  • catheraaine
  • kaseybon
  • flotsam