commonjs-bot's repositories
num-sort
Sort an array of numbers
file-url
Convert a file path to a file URL: `unicorn.jpg` → `file:///Users/sindresorhus/unicorn.jpg`
file-metadata
Get file metadata using `mdls` on macOS
esc-exit
Exit the process when the `esc` key is pressed
cycled
Cycle through the items of an array
cat-pad
🐈 Left pad a string with cats
strip-url-auth
Strip the authentication part of a URL
is-root
Check if the process is running as root user, for example, one started with `sudo`
park-miller
Park-Miller pseudorandom number generator (PRNG)
is-error-constructor
Check if a value is an error constructor
is-empty-iterable
Check if an Iterable is empty
p-break
Break out of a promise chain
unique-string
Generate a unique random string
read-pkg-up
Read the closest package.json file
shell-history
Get the command history of the user's shell
bundle-name-cli
Get bundle name from a bundle identifier (macOS): com.apple.Safari → Safari
default-browser-cli
Get the default browser
default-browser
Get the default browser
default-browser-id
Get the bundle identifier of the default browser (macOS). Example: com.apple.Safari
bundle-name
Get bundle name from a bundle identifier (macOS): com.apple.Safari → Safari
node-cli-boilerplate
Boilerplate to kickstart creating a Node.js command-line tool
debounce-fn
Debounce a function
os-name-cli
Get the name of the current operating system
path-type
Check if a path is a file, directory, or symlink
node-module-boilerplate
Boilerplate to kickstart creating a Node.js module
rgb-hex-cli
Convert RGB color to HEX
react-extras
Useful components and utilities for working with React
ky-universal
Use Ky in both Node.js and browsers
in-range
Check if a number is in a given range