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

0.25.0 • Public • Published

Cloned from the official repo to add @grpc/grpc-js support.

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

Package Sidebar

Install

npm i @trinnylondon/mali

Homepage

mali.js.org/

Weekly Downloads

7

Version

0.25.0

License

Apache-2.0

Unpacked Size

55 kB

Total Files

13

Last publish

Collaborators

  • minhazmitha
  • satyavas
  • mdigman
  • jhanzeb1
  • williamknipe
  • karentrinny
  • noafilosof25
  • n-ckr-ch-rds-n
  • githab
  • brigicsap
  • mmoise
  • ksyu
  • thewildebeest
  • simontanner_trinny
  • throwingspoon
  • adamholbrook
  • rokkoka
  • djnzloop
  • sachinahya
  • stonedem0
  • trinnylondon-tech
  • ryan_ju
  • dio-trinny
  • marthajenkins95
  • jayjetley
  • maryainduri
  • jayontraps
  • adamhz
  • alaanzr