No description
Find a file
2021-06-13 03:02:15 +01:00
examples feat: add CCashClient methods 2021-06-13 03:01:37 +01:00
src feat: add CCashClient methods 2021-06-13 03:01:37 +01:00
test feat: add CCashClient methods 2021-06-13 03:01:37 +01:00
.gitignore feat: initial commit 2021-06-13 00:02:06 +01:00
babel.config.js feat: initial commit 2021-06-13 00:02:06 +01:00
jest.config.ts feat: initial commit 2021-06-13 00:02:06 +01:00
package.json feat: add CCashClient methods 2021-06-13 03:01:37 +01:00
prettier.config.js feat: initial commit 2021-06-13 00:02:06 +01:00
README.md feat: add CCashClient methods 2021-06-13 03:01:37 +01:00
tsconfig.json feat: add CCashClient methods 2021-06-13 03:01:37 +01:00
yarn.lock feat: add CCashClient methods 2021-06-13 03:01:37 +01:00

ccash-client-js

TypeScript/JavaScript client library for CCash HTTP API.

Installation

yarn add ccash-client-js
# or
npm install ccash-client-js

Usage

import { CCashClient } from 'ccash-client-js';

process.env.CCASH_API_BASE_URL = 'https://your.ccash.api';

const client = new CCashClient();

console.log(await client.balance('blinkblinko'));

Examples

Run yarn start to run the examples from their corresponding directory.

Development

  • Build for production: yarn build

  • Build and watch for development: yarn dev

  • Format source code w/ prettier: yarn format

  • Test source units w/ jest: yarn test

TODO

  • Start/finish client implementation

  • Add CI/CD

  • Publish to npm