Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@bothrs/util
Advanced tools
Here you can find a list of all the main utils being exported by this package. More in depth, generated, documentation can be found on the gh pages.
If you're reading this on the gh pages, use the sidebar on the right!
All standard typescript
modules can be found in the docs, but there are also a lot of mjs files that could be useful. Here's a list of available mjs modules:
The mjs files contain code that could benefit from
some triage; either refactored into ts
files or removed.
Download translations table from Airtable and write to file that can be imported.
Optimistically load translations table from Airtable.
Manage command line.
console.log(green('Success'))
=> Log "success" in green
Demo CDN integration
Command line colors
console.log(green('Success'))
=> Log "success" in green
Svelte store for reconnecting websocket.
Read and write cookies.
Copy to clipboard
Manage dates
Download files
Format strings
Hash shorthands
const hash = md5('test')
Svelte store for user inactivity
const { sub } = unsafeDecode('eY...')
=> Decode JWT
Load knex instance with config based on standard env variables.
import { knex } from 'knex-env'
=> Ready to use knex instance
Knex config based on standard env variables.
Load leaflet JS and CSS.
Load scripts, stylesheets and CSS.
Svelte store for location
Stream logs to a file.
Send mailgun messages.
Render basic markdown to HTML.
Functions with numbers
Load Messenger SDK.
Disable scroll behind modals.
Svelte store for device orientation
Hash and verify passwords.
Get a random element from an array.
Initialize Sentry based on standard env variables.
Send emails with nodemailer based on standard env variables.
Connect to a socket.io server.
Svelte store helpers
Svelte store for light/dark theme
Translation helpers
Launch a Typeform widget.
Load the Voxeet SDK.
Helpers to protect against XSS
FAQs
Common helper functions
The npm package @bothrs/util receives a total of 249 weekly downloads. As such, @bothrs/util popularity was classified as not popular.
We found that @bothrs/util demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 7 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 researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.