@weave-js/repl

0.15.1 • 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.

Readme

Keywords

none

Package Sidebar

Install

npm i @weave-js/repl

Weekly Downloads

1

Version

0.15.1

License

MIT

Unpacked Size

48.5 kB

Total Files

23

Last publish

Collaborators

  • fachw3rk