Useful utilities and tools for building Signum blockchain applications
@signumjs/util
can be used with NodeJS or Web. Two formats are available
Install using npm:
npm install @signumjs/util
or using yarn:
yarn add @signumjs/util
import {Amount} from '@signumjs/util'
const value = Amount.fromSigna(1000)
console.log(value.toString())
Each package is available as bundled standalone library using UMD.
This way signumJS can be used also within <script>
-Tags.
This might be useful for Wordpress and/or other PHP applications.
Just import the package using the HTML <script>
tag.
<script src='https://cdn.jsdelivr.net/npm/@signumjs/util/dist/signumjs.util.min.js'></script>
const {Amount} = sig$util
const value = Amount.fromSigna(1000)
console.log(value.toString())
See more here: