Neverending Pile of Messages

    @snelusha/cereal

    1.0.1 • Public • Published

    Getting Started

    Installation

    npm install @snelusha/cereal
    

    Usage

    // Subscribe
    import { subscribe } from "@snelusha/cereal";
    subscribe("SUBSCRIBE_TOPIC", (payload) => console.log(payload));
    
    // Publish
    import { publish } from "@snelusha/cereal";
    publish("SUBSCRIBE_TOPIC", payload);
    
    // Unsubscribe
    import { subscribe } from "@snelusha/cereal";
    const unsubscribe = subscribe("SUBSCRIBE_TOPIC", (payload) =>
      console.log(payload)
    );
    unsubscribe();

    Install

    npm i @snelusha/cereal

    DownloadsWeekly Downloads

    1

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    7.34 kB

    Total Files

    5

    Last publish

    Collaborators

    • snelusha