Skip to content

SIMBAChain/libsimba-js

Repository files navigation

Welcome to libsimba-js

npm Documentation License: MIT azure

libsimba-js is a library simplifying the use of SIMBAChain APIs. We aim to abstract away the various blockchain concepts, reducing the necessary time needed to get to working code.

Install

npm install @simbachain/libsimba-js

Usage

  • ES2105 module import
import * as libsimba from '@simbachain/libsimba-js';
libsimba.getSimbaInstance(...);
  • CommonJS module require
const libsimba  = require('@simbachain/libsimba-js');
libsimba.getSimbaInstance(...);
  • AMD module require
require(['@simbachain/libsimba-js'], function (libsimba) {
    libsimba.getSimbaInstance(...);
});
  • <script> tag import
<!doctype html>
<html>
  ...
  <script src="./dist/libsimba.js"></script>
  <script>
    // ...
    // Global variable
    libsimba.getSimbaInstance(...);
    // Property in the window object
    window.libsimba.getSimbaInstance(...);
    // ...
  </script>
</html>

Examples

See here

Contributing

Contributions, issues and feature requests are welcome!
Feel free to check issues page.

License

Copyright © 2019 SIMBAChain Inc.
This project is MIT licensed.