1.8.2 • Published 3 years ago

ccash-client-js v1.8.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

ccash-client-js

TypeScript/JavaScript client library for CCash HTTP API.

Installation

yarn add ccash-client-js
# or
npm install --save 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'));

Set environment variable DEBUG=CCashClient to log debug messages.

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

If you're developing locally and using this client as a dependency, you can link the package so the local client version is used.

cd ccash-client-js
yarn link
yarn dev

# and then

cd your-project
yarn add ccash-client-js # if not already in packge.json
yarn link ccash-client-js
1.8.2

3 years ago

1.8.1

3 years ago

1.8.0

3 years ago

1.6.3

3 years ago

1.6.2

3 years ago

1.7.0

3 years ago

1.6.1

3 years ago

1.6.0

3 years ago

1.5.0

3 years ago

1.4.0

3 years ago

1.3.0

3 years ago

1.2.0

3 years ago