Socket
Socket
Sign inDemoInstall

lt-surge

Package Overview
Dependencies
20
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    lt-surge

A collection of connect middleware to mimic to Harp/Surge serving behaviour


Version published
Weekly downloads
3
decreased by-72.73%
Maintainers
1
Install size
1.58 MB
Created
Weekly downloads
 

Readme

Source

Lt. Surge

A collection of connect middleware to mimic to Harp/Surge serving behaviour, shamelessly ripped from Harp

Build Status Coverage Status

Usage

var middleware = require('lt-surge');
var projectDir = 'path/to/project';

// browser-sync example
middleware: [
    middleware.regProjectFinder(projectDir),
    middleware.underscore,
    middleware.mwl,
    middleware.static,
    middleware.fallback,
]

// using the convenience method
middleware: middleware.all(projectDir),

// connect example
var app = connect()
app.use(middleware.regProjectFinder(projectDir))
app.use(middleware.underscore)
app.use(middleware.mwl)
app.use(middleware.static)
app.use(middleware.fallback)

Keywords

FAQs

Last updated on 27 Sep 2016

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc