0.0.1 • Published 10 months ago
@adobe-csc/jsonata-client v0.0.1
Content Supply Chain Commons - JSONATA Client
A flexible JSONATA client sdk.
Using this library
- Install the package using
npm install @adobe-csc/jsonata-client.
usage:
import { executeJsonataExpression } from "@adobe-csc/jsonata-client";
/**
* Returns text layers using {{name}} naming convention
* @returns {Array<TextLayer>} Array of text layers found in the manifest
*/
public async getVariableTextLayers(): Promise<Array<TextLayer>> {
const jsonataExpression = fs.readFileSync(
path.join(__dirname, "expressions/getTextLayers.jsonata"),
"utf8");
return executeJsonataExpression(jsonataExpression, this._manifest);
}Local Development Setup
- Clone the mono repo
- Install the dependencies using
npm install - Run the tests using
npm test
0.0.1
10 months ago