@shpear/utils

0.0.0-development.1 • Public • Published

@shpear/utils

Utility functions for the @shpear microservice framework

Usage

const { makeServer, sendMessageAcrossTCP } = require('@shpear/utils')

// Creates a Server instance for our Message Bus
const { _server, messages } = makeServer()

// Send a message to a TCP server
sendMessageAcrossTCP({
  host: 'localhost',
  port: 5001
}, 'some value able to be sent to net.Socket.end')

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @shpear/utils

    Weekly Downloads

    0

    Version

    0.0.0-development.1

    License

    MIT

    Unpacked Size

    1.84 kB

    Total Files

    5

    Last publish

    Collaborators

    • beardedtim