Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

urlio

chbrown13MIT0.5.0TypeScript support: included

URL in/out

url, routes, parse, stringify

readme

urlio

npm version Travis CI Build Status Coverage Status

A module for matching URLs against patterns with a syntax inspired by Ember.js (and thus react-router and angular's ui-router), but also generating URLs from pre-defined routes given path parameters.

npm install --save urlio

For now, in its very alpha state, it supports :var and * (splat) segments in addition to literal contexts.

See the tests for examples.

License

Copyright 2015–2018 Christopher Brown. MIT Licensed