Package Exports
- reverend
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 (reverend) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
reverend
Merge an express-style path string with data to create a valid path.
Usage
var reverend = require('reverend');reverend(path, object);
path(String) - An express-style pathobject(Object) - An object with keys matching the tokens to be replaced in the route.
'use strict';
var reverend = require('reverend');
var path;
path = reverend('/user/:id', { id: 5 });
// '/user/5';
path = reverend('/user/:id/:operation?', { id: 5 });
// '/user/5/';
path = reverend('/user/:id/:operation', { id: 5, operation: address });
// '/user/5/address';License
MIT
Tests, Coverage, Linting
$ npm test$ npm run cover$ npm run lint