sindresorhus / round-toView external linksLinks
Round a number to a specific number of decimal places: 1.234 → 1.2
☆160Sep 17, 2025Updated 4 months ago
Alternatives and similar repositories for round-to
Users that are interested in round-to are comparing it to the libraries listed below
Sorting:
- Check if a value is a function☆29May 3, 2021Updated 4 years ago
- Left pad each line in a string☆20Aug 31, 2023Updated 2 years ago
- Pretty time zone: +2 or -9:30☆58Jul 9, 2022Updated 3 years ago
- Count the number of lines in a string☆10Apr 17, 2016Updated 9 years ago
- Ensure a function is stable, meaning the same input always produces the same output☆16Nov 4, 2023Updated 2 years ago
- Get a random item from an array☆58Mar 28, 2022Updated 3 years ago
- Exclude certain items from an array☆23Jun 13, 2025Updated 8 months ago
- Convert a Source Map object to a comment☆16Aug 9, 2021Updated 4 years ago
- Convert a value to an array☆133Nov 9, 2021Updated 4 years ago
- ES2015 Math.imul() ponyfill☆11Oct 30, 2023Updated 2 years ago
- Include only certain items in an array☆19Jun 13, 2025Updated 8 months ago
- Get a random key from an object☆18Jul 2, 2024Updated last year
- Check if a value is a plain object☆104May 4, 2024Updated last year
- Alphabetically sort an array of strings☆40Apr 9, 2021Updated 4 years ago
- Get the user agent of a recent Chrome version to pretend to be a browser in network requests☆37Nov 4, 2023Updated 2 years ago
- ES2015 Math.hypot() ponyfill☆12Apr 7, 2021Updated 4 years ago
- Check if a value is an object☆42Apr 16, 2021Updated 4 years ago
- Generate a random float☆37Apr 18, 2021Updated 4 years ago
- Test for deep equality - Node.js `assert.deepStrictEqual()` algorithm as a standalone module☆23Sep 17, 2021Updated 4 years ago
- Get free disk space info from `df -kP`☆64Sep 13, 2025Updated 5 months ago
- Create a noop process and get the PID☆14Aug 10, 2021Updated 4 years ago
- Parse text columns, like the output of unix commands☆84Sep 9, 2025Updated 5 months ago
- Get the avatar of a GitHub user☆21Oct 14, 2021Updated 4 years ago
- Get the path of the current directory in Finder (macOS) and Explorer (Windows)☆19Aug 10, 2021Updated 4 years ago
- Bind all methods in an object to itself or a specified context☆59Apr 19, 2021Updated 4 years ago
- Get the command history of the user's shell☆86Nov 2, 2025Updated 3 months ago
- Measure the time a promise takes to resolve☆72Nov 5, 2023Updated 2 years ago
- Convert matching double-quotes to single-quotes: `I "love" unicorns` → `I 'love' unicorns`☆57Feb 2, 2026Updated last week
- Detect when an element is ready in the DOM☆447Jan 27, 2026Updated 2 weeks ago
- Get the version numbers of a package from the npm registry☆31Feb 26, 2024Updated last year
- Get the URL from a web shortcut file☆14Aug 14, 2021Updated 4 years ago
- `Promise#finally()` ponyfill - Invoked when the promise is settled regardless of outcome☆47Apr 9, 2021Updated 4 years ago
- Get a random property from an object☆15Jul 2, 2024Updated last year
- Application level sharding made simple!☆10Mar 25, 2017Updated 8 years ago
- Support any Observable library and polyfill☆74Feb 2, 2026Updated last week
- Generate random numbers that are consecutively unique☆118Apr 8, 2024Updated last year
- Generate a random integer☆89Sep 15, 2025Updated 5 months ago
- Resolve the path of a package regardless of it having an entry point☆55Updated this week
- Node.js 0.12 path.isAbsolute() ponyfill☆43Jan 24, 2021Updated 5 years ago