1.2.3 • Published 6 months ago

cool-grpc v1.2.3

Weekly downloads
-
License
MPL-2.0
Repository
github
Last release
6 months ago

cool-grpc

Simple, stupid gRPC client for Node written in Typescript

Features

  • Easy to use (inspired by fetch and got)
  • Loading multiple .proto files
  • Automatic message encoding/decoding
  • Unary calls
  • Client streaming
  • Server streaming
  • Hooks

Get Started

npm i cool-grpc
import { makeRequest } from 'cool-grpc'

const protos = ['./helloworld.proto']

makeRequest(protos, {
  host: '0.0.0.0:50051',
  service: 'helloworld.Greeter',
  method: 'SayHello',
  metadata: {},
  data: {
    name: 'world'
  },
  tls: {
    rootCerts: "",
    privateKey: "",
    certChain: ""
  },
  beforeRequest: (req) => {},
  afterResponse: (res) => {}
})
.then(console.log)
.catch(console.error)
1.2.0

6 months ago

1.1.6

9 months ago

1.2.3

6 months ago

1.2.2

6 months ago

1.2.1

6 months ago

1.1.5

1 year ago

1.1.4

1 year ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago