app3-utils

Collection of utility functions used in app3.js.

Usage no npm install needed!

<script type="module">
  import app3Utils from 'https://cdn.skypack.dev/app3-utils';
</script>

README

app3-utils

This is a sub package of app3.js

This contains useful utility functions for Dapp developers.
Please read the documentation for more.

Installation

Node.js

npm install app3-utils

In the Browser

Build running the following in the app3.js repository:

npm run-script build-all

Then include dist/app3-utils.js in your html file. This will expose the Apis3Utils object on the window object.

Usage

// in node.js
var Apis3Utils = require('app3-utils');
console.log(Apis3Utils);
{
    sha3: function(){},
    soliditySha3: function(){},
    isAddress: function(){},
    ...
}