byway

yet another router; match a string by :sinatra/:express style named-params, or regex, and get something back.

Usage no npm install needed!

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

README

Byway

Match a string by :sinatra/:express style named-params, or regex, and get something back.

install

npm i --save git@github.com:isao/byway.git

usage

See tests.

test

npm test

Tests use James Halliday's tape test harness. If you have Krishnan Anantheswaran's istanbul, or Jarrod Overson's plato installed globally you can do these, respectively:

npm run-script cover
npm run-script plato

license

MIT licensed by permission from my employer. See LICENSE.txt.