Have ideas to improve npm?Join in the discussion! »

    @weave-js/repl

    0.9.0-beta.12 • Public • Published

    @weave-js/repl

    REPL module for weave microservice framework

    Installation

    npm install @weave-js/repl
    

    Usage

    const { Weave } = require('@weave-js/core')
    
    const broker = Weave({
        logger: {
            level: 'debug'
        }
    })
    
    broker.createService({
        name: 'math',
        actions: {
            add(context) {
                return Number(context.data.a) + Number(context.data.b)
            }
        }
    });
    
    await broker.start()
    await broker.repl()

    Documentation

    Refer to the Weave REPL documentation for more details.

    License

    Copyright (c) 2019 by Fachwerk Software

    Licensed under the MIT license.

    Keywords

    none

    Install

    npm i @weave-js/repl

    DownloadsWeekly Downloads

    76

    Version

    0.9.0-beta.12

    License

    MIT

    Unpacked Size

    41.7 kB

    Total Files

    23

    Last publish

    Collaborators

    • avatar