visionmedia / page.js

Micro client-side router inspired by the Express router
http://visionmedia.github.com/page.js
7.67k stars 687 forks source link

Adds an ES module #500

Closed matthewp closed 5 years ago

matthewp commented 5 years ago

This adds an ES module, page.mjs that exports the page object as the default export. Can be used like so:

import page from '//unpkg.com/page/page.mjs';

page('/', show);

Eventually we might want to change the README to show this as the primary usage.

Closes #499

coveralls commented 5 years ago

Coverage Status

Coverage remained the same at 89.326% when pulling baa83223497c65b1e7784631ad5111fb02b8fe5b on es into 71bb2d8771159985065819fcebd8e6b5c62e3b26 on master.