loom-api-client-node
v1.1.1
Published
Node client for interacting with Loom API
Readme
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:
- run
mwinit --aea - run
ada credentials update --once --account=564322635714 --role=admin --profile=loom-dev - set
AWS_PROFILE=loom-devandAWS_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
