developer-sdk-js
Installation
TODO (once we have the app deployed into npm central).
yarn install starling-developer-sdk
Usage
const Starling = require('starling-developer-sdk');
const client = new Starling();
client
.getCustomer()
.then(({data}) => {
});
Developing the SDK
Install dependencies as follows
$ yarn install
The following scripts are at your disposal:
yarn <script> | Description |
---|
clean | Removes the compiled code. |
build | Compiles the application to disk (dist/ by default). |
lint | Lint all .js files. |
test | Runs unit tests with mocha. |
test-verbose | Runs unit tests with debug logging. |