Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
@bothrs/util
Advanced tools
Manage Airtable data based on standard env variables.
await select('Blogposts')
=> Load blogposts
Download translations table from Airtable and write to file that can be imported.
Optimistically load translations table from Airtable.
Manage Airtable data.
await select({ app: '', key: '' }, 'Blogposts')
=> Load blogposts
await timeout(1000)
=> Wait for 1 second
const busy = await isPending(promise)
=> Check if promise is pending
const [error, data] = await to(promise)
=> Unwrap promise
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
Fetch JSON + shorthand for Authorization: Bearer
Format strings
Read and write from filesystem using promises.
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 for migrations.
require('.../util/knexfile-env.js')
=> Save this as knexfile.js
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.
Minimal helper for localStorage
Send mailgun messages.
Render basic markdown to HTML.
Functions with numbers
Optimize common requests.
Load Messenger SDK.
Disable scroll behind modals.
Svelte store for device orientation
Hash and verify passwords.
Generate random strings and UUIDs.
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.
Filter uniq items from an array.
Manage URLs.
serialize({ example: 'ok' })
=> Build a querystring
Launch a Vimeo video player.
Load the Voxeet SDK.
Helpers to protect against XSS
FAQs
Common helper functions
The npm package @bothrs/util receives a total of 119 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.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.