urlio

URL in/out

Usage no npm install needed!

<script type="module">
  import urlio from 'https://cdn.skypack.dev/urlio';
</script>

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