Git Product home page Git Product logo

semux-js's Introduction

Semux Javascript SDK

NPM Status Travis Build Status Coverage Status

This library aims to providing javascript utilities for Semux client-side applications, such as web wallet.

Visit issues page to see planned features or propose a feature request.

Table of Contents

Install

npm install --save semux-js

Getting Started

Node.js

// import semux module
const {SemuxApi, SemuxApiConfiguration} = require("semux-js");

// create an API client
const api = new SemuxApi(new SemuxApiConfiguration({
    username: "user",
    password: "pass",
    basePath: "http://localhost:5171/v2.1.0"
}));

// call GET /info API
api
  .getInfo({ mode: 'cors', credentials: 'include' })
  .then(response => console.log(response))
  .catch(err => console.error(err));

Usage

Example Applications

Browser Compatibility

  • Chrome >= 65
  • Firefox >= 59
  • IE >= 11
  • Edge >= 16
  • Safari >= 6

Development

Install Modules

npm install

Run Unit Tests

npm test

Run Browser Tests

Browser testing requires Chrome and Firefox installed.

npm run-script test:browser

Format Source Code

npm run format

Check Source Code Formatting

npm run format:check

Maintainers

@cryptokat.

License

MIT © The Semux Developers

semux-js's People

Contributors

cryptokat avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.