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 2 months ago
- Ensure a function is stable, meaning the same input always produces the same output☆16Nov 4, 2023Updated 3 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
- Managed hosting for WordPress and PHP on Cloudways • AdManaged hosting for WordPress, Magento, Laravel, or PHP apps, on multiple cloud providers. Deploy in minutes on Cloudways by DigitalOcean.
- Turn an object into a string of HTML attributes☆53Jun 28, 2026Updated 4 months ago
- List of platforms supported by Node.js☆12Nov 3, 2021Updated 5 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 2 months ago
- Get namespaced config from the closest package.json☆118Sep 18, 2026Updated 2 months ago
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `file://` to file paths☆24Sep 18, 2026Updated 2 months ago
- Modify the values of an object☆28Sep 18, 2026Updated 2 months ago
- Regular expression for matching scoped npm package names☆28Sep 18, 2026Updated 2 months ago
- Strip a substring from the start/end of a string☆23Sep 18, 2026Updated 2 months ago
- Managed hosting for WordPress and PHP on Cloudways • AdManaged hosting for WordPress, Magento, Laravel, or PHP apps, on multiple cloud providers. Deploy in minutes on Cloudways by DigitalOcean.
- Check if an Array is sorted☆35Aug 11, 2021Updated 5 years ago
- Check if a path is a file, directory, or symlink☆82Sep 18, 2026Updated 2 months ago
- Check if a string is email like☆25Nov 11, 2025Updated last year
- Convert matching single-quotes to double-quotes: `I 'love' unicorns` → `I "love" unicorns`☆24Sep 18, 2026Updated 2 months ago
- Check if a path is the current working directory☆23Sep 18, 2026Updated 2 months ago
- 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 a path is inside another path☆41Sep 18, 2026Updated 2 months ago
- Check if it's the first time the process is run☆83Sep 12, 2025Updated last year
- Managed hosting for WordPress and PHP on Cloudways • AdManaged hosting for WordPress, Magento, Laravel, or PHP apps, on multiple cloud providers. Deploy in minutes on Cloudways by DigitalOcean.
- 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
- An error subclass for wrapping non-error values☆43Oct 20, 2025Updated last year
- Exit the process when the `esc` key is pressed☆59Dec 4, 2023Updated 2 years ago
- Strip shebang (eg. #!/bin/sh) from a string☆11Aug 18, 2021Updated 5 years ago
- Simple PhantomJS bridge☆17Jan 24, 2021Updated 5 years ago
- Create an error from multiple errors☆249Oct 14, 2026Updated last month
- Check if a string is a URL☆86Sep 18, 2026Updated 2 months ago
- Replace all substring matches in a string☆91Aug 9, 2021Updated 5 years ago
- Managed hosting for WordPress and PHP on Cloudways • AdManaged hosting for WordPress, Magento, Laravel, or PHP apps, on multiple cloud providers. Deploy in minutes on Cloudways by DigitalOcean.
- Get an unused filename by appending a number if it exists: `file.txt` → `file (1).txt`☆144Sep 18, 2026Updated 2 months ago
- Ensure a function is only called once☆166Sep 18, 2026Updated 2 months ago
- Regular expression for matching mapcodes☆19Jul 24, 2022Updated 4 years ago
- Check if a filepath is a Markdown file☆22May 4, 2021Updated 5 years ago
- Use the browser Fetch API from the main process in Electron☆36May 1, 2024Updated 2 years ago
- Truncate a semver version: 1.2.3 → 1.2.0☆17Sep 18, 2026Updated 2 months ago
- Modify the source of an imported module☆28Jan 23, 2021Updated 5 years ago
Are these results useful?