1.1.1 • Published 1 year ago

loom-api-client-node v1.1.1

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

loom-api-client-node

A client for calling Loom AWS Lambda functions with Node

Usage

Auth

The client assumes your environment already has auth data. For example:

  1. run mwinit --aea
  2. run ada credentials update --once --account=564322635714 --role=admin --profile=loom-dev
  3. set AWS_PROFILE=loom-dev and AWS_REGION=us-west-2

Node

const { Loom } = require("loom-api-client-node");

const loom = new Loom.MidwayClient({
  devI18nService: true,
});

async function get() {
  const result = await loom.getStringsByProject("test-project");
  console.log(result);
}

get();

Publishing

The library needs to be published to NPM before it can be used by projects outside of loom. Publishing is not necessary before consuming within the Loom repo.

yarn publish