Skip to content
Permalink
Browse files

Update dependencies. Improve install instructions

  • Loading branch information
bojand committed May 9, 2019
1 parent f6d0b30 commit 4cdee775755bfbf94857e6efff3fb077d525bab4
Showing with 23 additions and 43 deletions.
  1. +4 −5 README.md
  2. +17 −36 package-lock.json
  3. +2 −2 package.json
@@ -13,24 +13,23 @@

## Installation

Install module and required peer dependencies.

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

## Example

```js
const path = require('path')
const Mali = require('mali')
const PROTO_PATH = path.resolve(__dirname, '../protos/helloworld.proto')
async function sayHello (ctx) {
ctx.res = { message: 'Hello '.concat(ctx.req.name) }
}
function main () {
const app = new Mali(PROTO_PATH)
const app = new Mali('helloworld.proto')
app.use({ sayHello })
app.start('127.0.0.1:50051')
}

Some generated files are not rendered by default. Learn more.

@@ -57,10 +57,10 @@
},
"peerDependencies": {
"grpc": "^1.11.0",
"@grpc/proto-loader": "^0.3.0 || ^0.4.0"
"@grpc/proto-loader": "^0.3.0 || ^0.4.0 || ^0.5.0"
},
"devDependencies": {
"@grpc/proto-loader": "^0.4.0",
"@grpc/proto-loader": "^0.5.0",
"async": "^2.6.2",
"ava": "^1.3.0",
"coveralls": "^3.0.2",

0 comments on commit 4cdee77

Please sign in to comment.
You can’t perform that action at this time.