Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
@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
A useful regex for matching burst addresses
Construct a Burst address from a string array
Helper method to Number to String(8 decimals) representation
Helper method to convert a String to number
Decode BURST-XXXX-XXXX-XXXX-XXXXX into numeric Id
Encode a numeric id into BURST-XXXX-XXXX-XXXX-XXXXX
Validation Check. Quick validation of Burst addresses included
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
Construct a Burst address from a string array
Kind: global function
Param | Description |
---|---|
parts | 4 parts string array |
Helper method to Number to String(8 decimals) representation
Kind: global function
Returns:
a NQT number string
Param | Description |
---|---|
n | the number |
Helper method to convert a String to number
Kind: global function
Returns:
A number expressed in Burst (not NQT)
Param | Description |
---|---|
amount | The amount in NQT |
Decode BURST-XXXX-XXXX-XXXX-XXXXX into numeric Id
Kind: global function
Param | Description |
---|---|
address | The BURST address |
Encode a numeric id into BURST-XXXX-XXXX-XXXX-XXXXX
Kind: global function
Param | Description |
---|---|
numericId | The numeric Id |
Validation Check. Quick validation of Burst addresses included
Kind: global function
Param | Description |
---|---|
address | Burst Address |
Check for valid Burst address (format: BURST-XXXX-XXXX-XXXX-XXXXX, XXXX-XXXX-XXXX-XXXXX)
Kind: global function
Param | Description |
---|---|
address | 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 11 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
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.