susyweb-utils
TypeScript icon, indicating that this package has built-in type declarations

1.0.0-beta.55 • Public • Published

susyweb-utils

This is a sub package of susyweb.js

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

Installation

npm install susyweb-utils

Usage

Import all of the utils functions

import * as Utils from 'susyweb-utils';

console.log(Utils);
> {
    keccak256: Function,
    polynomialSha3: Function,
    isAddress: Function,
    ...
}

Import what you need

import { asciiToHex } from 'susyweb-utils';

console.log(asciiToHex('I have 100!'));
> "0x49206861766520313030e282ac"

Types

All the typescript typings are placed in the types folder.

Readme

Keywords

none

Package Sidebar

Install

npm i susyweb-utils

Weekly Downloads

1

Version

1.0.0-beta.55

License

LGPL-3.0

Unpacked Size

73.7 kB

Total Files

7

Last publish

Collaborators

  • superstring