JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 32831
  • Score
    100M100P100Q143555F

Routing for static site generators and build systems, heavily based on express.js and kerouac routes.

Package Exports

  • en-route

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (en-route) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

scenic NPM version

Routing for build systems and static site generators, based on express.js and kerouac routes.

WIP.

Install

Install with npm:

npm i scenic --save-dev

Usage

var Router = require('scenic');
var router = new Router();

API

Router

Initialize a new Router.

Example:

var Router = require('router');
var router = new Router();
  • options {Object}

.route

Route filepath to one or more callbacks.

  • filepath {String}
  • middleware {Function|Array}: Middleware stack.
  • return {Object}

Author

Jon Schlinkert

Brian Woodward

License

Copyright (c) 2014 Jon Schlinkert, contributors.
Released under the MIT license


This file was generated by verb-cli on August 02, 2014.