bs-pretty-message

1.0.8 • Public • Published

bs-pretty-message

Overlay a fullscreen message to all browsers. Useful for showing errors from webpack/browserify/gulp, etc.

Install

NOTE: It needs browser-sync as peer dependency.

$ npm i bs-pretty-message --save-dev

Usage

var browserSync = require('browser-sync').create();
 
browserSync.init({
    server: 'test/fixtures',
    plugins: ['bs-pretty-message']
});
 
// Emit an event to connected clients
setTimeout(function () {
    browserSync.sockets.emit('fullscreen:message', {
      title: "Hello from Example",
      body:  '10 seconds have elapsed!'
    });
}, 5000);

Related

License

MIT © Kiko Beats.

Package Sidebar

Install

npm i bs-pretty-message

Weekly Downloads

145

Version

1.0.8

License

MIT

Last publish

Collaborators

  • kikobeats