New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ccash-client-js

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ccash-client-js

JS HTTP client for CCash

  • 1.8.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-88.89%
Maintainers
1
Weekly downloads
 
Created
Source

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

  • Web (react) example can be found in examples/web

  • Server (node) example can be found in 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

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

FAQs

Package last updated on 23 Jun 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc