1.0.7 • Published 5 years ago

dwarf-client v1.0.7

Weekly downloads
1
License
ISC
Repository
-
Last release
5 years ago

gRPC client for Dwarf

Use with dwarf microservice on a node web server. Use DWARF_GRPC_SERVER env var to set the gRPC server.

import { shorten } from "dwarf-client";

async function main() {
  try {
    const shortenedUrls = await shorten(["http://google.com", "http://whatever.com"]);
    console.log(shortenedUrls); // -> { urls: ["short-link-1", "short-link-2"] }
  } catch (err) {
    console.error(err);
  }
}
1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago