@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

Dependents (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

  • jhanzeb1
  • sachinahya
  • mdigman
  • stonedem0
  • thewildebeest
  • trinnylondon-tech
  • ryan_ju
  • marthajenkins95
  • jayjetley
  • maryainduri
  • jayontraps
  • alaanzr
  • satyavas
  • adamholbrook
  • ksyu
  • minhazmitha
  • brigicsap
  • n-ckr-ch-rds-n
  • sallyali7
  • rselimi-trinny
  • sabya010
  • shreya13
  • mr.mohammed
  • abhisheksharma-hcl
  • anil-kumar-192
  • iamzero
  • manikandan.natarajan
  • apurvadamuluri
  • vinoth27
  • samaddar
  • saseendra3
  • siddareddysandhyahcl
  • harishjoshi
  • nakshatra-trinnylondon
  • divakaranseevagan
  • lavanyasrinivasa
  • jyoti.vaishnav.hcl
  • olu-apanishile