Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@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 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.