Holler sends desktop push notifications from the command line.
JavaScript
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
.editorconfig
.eslintrc
.gitignore
.jestrc.json
.prettierignore
.prettierrc
LICENSE
README.md
logo.png
package-lock.json
package.json
webpack.config.js

README.md

Holler logo

Holler sends desktop push notifications from the command line using WebSockets.

npm version

Usage

  1. Install the package.

    $ npm i @bitpshr.net/holler -D
  2. Create a HollerServer using an existing Node HTTP server.

    const http = require('http');
    const HollerServer = require('@bitpshr.net/holler/server');
    const server = http.createServer().listen(1337);
    new HollerServer(server);
  3. Include the client script as an ES6 module or as a script tag and create a new Holler Client.

    import HollerClient from '@bitpshr.net/holler/client';
    new HollerClient('ws://localhost:1337');
    <script src="node_modules/@bitpshr.net/holler/client.js"></script>
    <script>new HollerClient('ws://localhost:1337');</script>
  4. Send JavaScript push notifications using the holler CLI.

    $ holler --url="ws://localhost:1337" --title="Hello" --body="Hello, world"

    See all available CLI commands via holler --help.

Demo

Holler demo

License

WTFPL