1.1.1 • Published 1 year ago
loom-api-client-node v1.1.1
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-dev
andAWS_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
1.1.1
1 year ago