ccash-client-js/README.md
2021-06-13 00:02:06 +01:00

47 lines
832 B
Markdown

# ccash-client-js
TypeScript/JavaScript client library for [CCash](https://github.com/EntireTwix/CCash) HTTP API.
## Installation
```
yarn add ccash-client-js
# or
npm install ccash-client-js
```
## Usage
```js
import { CCashClient } from 'ccash-client-js';
const client = new CCashClient();
client.balance('twix');
```
## Examples
- Web (react) example can be found in [`examples/web`](./examples/web)
- Server (node) example can be found in [`examples/node`](./examples/node)
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