1.0.7 • Published 6 years ago

dwarf-client v1.0.7

Weekly downloads
1
License
ISC
Repository
-
Last release
6 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

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago