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
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.
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.