@vendit-dev/mali
TypeScript icon, indicating that this package has built-in type declarations

0.47.2 • Public • Published

Mali

A minimalistic gRPC microservice framework.

npm version build status coverage status JavaScript Style Guide License chat on gitter Donate Buy me a coffee

Installation

Install module and required peer dependencies.

$ npm install mali @grpc/grpc-js @grpc/proto-loader

Example

const Mali = require('mali')

function sayHello (ctx) {
  ctx.res = { message: `Hello ${ctx.req.name}` }
}

function main () {
  const app = new Mali('helloworld.proto')
  app.use({ sayHello })
  app.start('0.0.0.0:50051')
}

Documentation

Full documentation.

License

Apache-2.0

/@vendit-dev/mali/

    Package Sidebar

    Install

    npm i @vendit-dev/mali

    Homepage

    mali.js.org/

    Weekly Downloads

    0

    Version

    0.47.2

    License

    Apache-2.0

    Unpacked Size

    55.2 kB

    Total Files

    14

    Last publish

    Collaborators

    • jay-l-e-e
    • vinchae
    • insung
    • oojikoo
    • daun_jung
    • scriptersugar
    • kdw8726