0.1.0 • Published 8 years ago
winterfresh v0.1.0
Winterfresh
npm install --save-dev winterfresh
Easily refresh your browser in sync with your server.
Install locally and require Winterfresh on your server.
$ npm install --save-dev winterfresh
const winterfresh = require('winterfresh');
Route '/fresh?' requests to Winterfresh.
router.get('/fresh?', (req, res) => winterfresh(res));
Include
client-winterfresh.js
in your html file. You can attain a copy of Winterfresh by either going to the GitHubRepository and downloading it, using RawGit or copying its path within your localnode_modules
folder.<script src="path/to/js/winterfresh.js" defer></script>
Now, every time your server restarts your browser will refresh, as well.
0.1.0
8 years ago