UNPKG

route-parser

Version:

A isomorphic, bullet-proof, ninja-ready route parsing, matching, and reversing library for Javascript in Node and the browser.

10 lines (8 loc) 227 B
/** * @module route/parser */ 'use strict'; /** Wrap the compiled parser with the context to create node objects */ var parser = require('./compiled-grammar').parser; parser.yy = require('./nodes'); module.exports = parser;