Ensures a value is a valid error by making it one if not
☆95Sep 15, 2025Updated last year
Alternatives and similar repositories for ensure-error
Users that are interested in ensure-error are comparing it to the libraries listed below. We may earn a commission when you buy through links labeled 'Ad' on this page.
Sorting:
- Modify the filename in a path☆17Sep 18, 2026Updated last month
- Ensure a function is stable, meaning the same input always produces the same output☆16Nov 4, 2023Updated 2 years ago
- Get the maximum permitted length of a path of a Unix domain socket☆14Aug 16, 2021Updated 5 years ago
- Strip a path from a path☆18Aug 18, 2021Updated 5 years ago
- ES2015 Math.imul() ponyfill☆11Oct 30, 2023Updated 3 years ago
- End-to-end encrypted cloud storage - Proton Drive • AdSpecial offer: 40% Off Yearly / 80% Off First Month. Protect your most important files, photos, and documents from prying eyes.
- Turn an object into a string of HTML attributes☆52Jun 28, 2026Updated 4 months ago
- List of platforms supported by Node.js☆12Nov 3, 2021Updated 4 years ago
- Parse/stringify contact info like `Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)`☆38Aug 9, 2021Updated 5 years ago
- Extract the actual stack of an error☆67Sep 18, 2026Updated last month
- Get namespaced config from the closest package.json☆118Sep 18, 2026Updated last month
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `file://` to file paths☆24Sep 18, 2026Updated last month
- Check if a path is the current working directory☆22Sep 18, 2026Updated last month
- Modify the values of an object☆28Sep 18, 2026Updated last month
- Check if a path is a file, directory, or symlink☆81Sep 18, 2026Updated last month
- Deploy to Railway using AI coding agents - Free Credits Offer • AdUse Claude Code, Codex, OpenCode, and more. Autonomous software development now has the infrastructure to match with Railway.
- Strip a substring from the start/end of a string☆23Sep 18, 2026Updated last month
- Regular expression for matching scoped npm package names☆28Sep 18, 2026Updated last month
- Check if an Array is sorted☆35Aug 11, 2021Updated 5 years ago
- Check if a string is email like☆25Nov 11, 2025Updated 11 months ago
- Convert matching single-quotes to double-quotes: `I 'love' unicorns` → `I "love" unicorns`☆24Sep 18, 2026Updated last month
- Check if a path is inside another path☆40Sep 18, 2026Updated last month
- Convert a time string to seconds: '0017' → 1337☆37May 3, 2021Updated 5 years ago
- Conditional promise catch handler☆40Apr 9, 2021Updated 5 years ago
- Check if it's the first time the process is run☆83Sep 12, 2025Updated last year
- Wordpress hosting with auto-scaling - Free Trial Offer • AdFully Managed hosting for WordPress and WooCommerce businesses that need reliable, auto-scalable performance. Cloudways SafeUpdates now available.
- Get the avatar of a GitHub user☆21Oct 14, 2021Updated 5 years ago
- Alphabetically sort an array of strings☆40Apr 9, 2021Updated 5 years ago
- Exit the process when the `esc` key is pressed☆59Dec 4, 2023Updated 2 years ago
- An error subclass for wrapping non-error values☆43Oct 20, 2025Updated last year
- Strip shebang (eg. #!/bin/sh) from a string☆11Aug 18, 2021Updated 5 years ago
- Simple PhantomJS bridge☆17Jan 24, 2021Updated 5 years ago
- Replace all substring matches in a string☆90Aug 9, 2021Updated 5 years ago
- Create an error from multiple errors☆248Oct 14, 2026Updated 2 weeks ago
- Get an unused filename by appending a number if it exists: `file.txt` → `file (1).txt`☆144Sep 18, 2026Updated last month
- Managed Database hosting by DigitalOcean • AdPostgreSQL, MySQL, MongoDB, Kafka, Valkey, and OpenSearch available. Automatically scale up storage and focus on building your apps.
- Check if a string is a URL☆86Sep 18, 2026Updated last month
- Ensure a function is only called once☆166Sep 18, 2026Updated last month
- Regular expression for matching mapcodes☆19Jul 24, 2022Updated 4 years ago
- Use the browser Fetch API from the main process in Electron☆36May 1, 2024Updated 2 years ago
- Check if a filepath is a Markdown file☆22May 4, 2021Updated 5 years ago
- Truncate a semver version: 1.2.3 → 1.2.0☆17Sep 18, 2026Updated last month
- Get the path of the current directory in Finder (macOS)☆16Apr 15, 2021Updated 5 years ago