Socket
Book a DemoInstallSign in
Socket

marshmallows

Package Overview
Dependencies
Maintainers
9
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

marshmallows

A drop-in Basic Auth middleware for Express

latest
Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
1
Maintainers
9
Weekly downloads
 
Created
Source

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 variables USER and PASS for credentials.
  • Run your app with NODE_ENV=production.

Keywords

express

FAQs

Package last updated on 29 Nov 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts