Socket
Socket
Sign inDemoInstall

@bitpshr.net/holler

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bitpshr.net/holler

Holler sends desktop push notifications from the command line.


Version published
Maintainers
1
Created
Source

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

Keywords

FAQs

Package last updated on 03 Apr 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc