Check which JavaScript environment your code is running in at runtime: browser, Node.js, Bun, etc
Repositories
sindresorhus repositories
Display an error in a GUI dialog
Exit the process when the `esc` key is pressed
&🐐; Escape a string for use in HTML or the inverse
Escape a string for use in AppleScript
Escape RegExp special characters
ESLint shareable config for the Google style
ESLint shareable config for Flow to be used with eslint-config-xo
Pretty ESLint formatter
JSON reporter for ESLint
ESLint rules for the Node.js built-in test runner (`node:test`)
More than 100 powerful ESLint rules
[DEPRECATED] Stylish reporter for ESLint
TAP formatter for ESLint
Showcasing real-world usage of ECMAScript 6 (the next JavaScript version) features
Evil Swift code. Because I can.
Example of how to scrape a site and create an RSS feed with Node.js
Catch Objective-C exceptions in Swift
Node.js 0.12 childProcess.execFileSync() ponyfill
Process execution for humans