Socket
Socket
Sign inDemoInstall

bricks-rewrite

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    bricks-rewrite

A simple rewrite plugin for bricks.js


Version published
Maintainers
1
Install size
3.82 kB
Created

Readme

Source

bricks-rewrite

A rewrite module for bricks.js.

Installing

$ npm install bricks-rewrite

Usage

var rewrite = require('bricks-rewrite');

var rules = [
  {
    path:    '^/$',
    replace: '/index.html'
  }
];

appserver.addRoute('.+', rewrite, { section: "pre", rules: rules });

Keywords

FAQs

Last updated on 03 Feb 2012

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