
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@burstjs/util
Advanced tools
Useful utilities and tools for building Burstcoin applications
Install using npm:
npm install @burstjs/util
or using yarn:
yarn add @burstjs/util
boolean
Check for valid Burst address (format: BURST-XXXX-XXXX-XXXX-XXXXX, XXXX-XXXX-XXXX-XXXXX)
Original work Copyright (c) 2018 PoC-Consortium Modified work Copyright (c) 2019 Burst Apps Team
Construct a Burst address from a string array
Converts BURST-XXXX-XXXX-XXXX-XXXXX into numeric Id
Helper method to convert a String to number
Helper method to Number to String(8 decimals) representation
Encode a numeric id into BURST-XXXX-XXXX-XXXX-XXXXX
boolean
Check for valid Burst address (format: BURST-XXXX-XXXX-XXXX-XXXXX, XXXX-XXXX-XXXX-XXXXX)
Split the Burst address string into an array of 4 parts
A useful regex for matching burst addresses
Kind: inner constant of util
boolean
Check for valid Burst address (format: BURST-XXXX-XXXX-XXXX-XXXXX, XXXX-XXXX-XXXX-XXXXX)
Kind: global variable
Returns: boolean
-
true, if is a valid address, else false
Param | Type | Description |
---|---|---|
address | string | The address |
Original work Copyright (c) 2018 PoC-Consortium Modified work Copyright (c) 2019 Burst Apps Team
Construct a Burst address from a string array
Kind: global function
Param | Description |
---|---|
parts | 4 parts string array |
Converts BURST-XXXX-XXXX-XXXX-XXXXX into numeric Id
Kind: global function
Returns:
The numeric id, or undefined if address is invalid
Param | Description |
---|---|
address | The BURST address |
Helper method to convert a String to number
Kind: global function
Returns:
A number expressed in Burst (not NQT)
exception if argument is invalid
Param | Description |
---|---|
amount | The amount in NQT |
Helper method to Number to String(8 decimals) representation
Kind: global function
Returns:
a NQT number string
Param | Description |
---|---|
n | the number |
Encode a numeric id into BURST-XXXX-XXXX-XXXX-XXXXX
Kind: global function
Returns:
the BURST address in Reed-Solomon encoding, or undefined if passed null, undefined
Param | Description |
---|---|
numericId | The numeric Id |
boolean
Check for valid Burst address (format: BURST-XXXX-XXXX-XXXX-XXXXX, XXXX-XXXX-XXXX-XXXXX)
Kind: global function
Returns: boolean
-
true, if is a valid address, else false
Param | Type | Description |
---|---|---|
address | string | The address |
Split the Burst address string into an array of 4 parts
Kind: global function
Param | Description |
---|---|
address | A valid Burst address |
FAQs
Useful utilities and tools for building Burstcoin applications
The npm package @burstjs/util receives a total of 90 weekly downloads. As such, @burstjs/util popularity was classified as not popular.
We found that @burstjs/util demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.