npm

Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript.Learn more »

mali

0.19.0 • 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/proto-loader

Example

const Mali = require('mali')
 
async function sayHello (ctx) {
  ctx.res = { message: 'Hello '.concat(ctx.req.name) }
}
 
function main () {
  const app = new Mali('helloworld.proto')
  app.use({ sayHello })
  app.start('127.0.0.1:50051')
}

Documentation

Full documentation.

License

Apache-2.0

install

npm i mali

Downloadsweekly downloads

1,675

version

0.19.0

license

Apache-2.0

homepage

mali.js.org

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability