If I had to place a bet on the most activity by one person on GitHub, I’d bet on TJ Holowaychuk. His latest project is Page.js (GitHub: visionmedia / page.js, npm: page), which is a client-side router. The routing syntax works like Express, so variables are denoted by
:name, and the
* route can be used to catch 404s. In this case, 404 is open to interpretation.
page('/', index) page('/user/:user', show) page('/user/:user/edit', edit) page('/user/:user/album', album) page('/user/:user/album/sort', sort) page('\*', notfound) page()
It’s actually a very lightweight project, based around
pushState, but it includes detailed comments and Mocha tests.
testr('path/to/module', stubs); testr('path/to/module', useExternal); testr('path/to/module', stubs, useExternal);
screenfull.request() is required to trigger fullscreen mode.
The library can do other things as well: a single element can be fullscreened, or events can be used to detect a change to fullscreen mode.