sindresorhus / round-to
Round a number to a specific number of decimal places: 1.234 → 1.2
☆155Updated last year
Alternatives and similar repositories for round-to
Users that are interested in round-to are comparing it to the libraries listed below
Sorting:
- Lazy number range generator☆81Updated last year
- Simplified high resolution timing☆81Updated 8 months ago
- Reliably get the terminal window size☆140Updated last year
- Get an unused filename by appending a number if it exists: `file.txt` → `file (1).txt`☆140Updated 3 years ago
- Get namespaced config from the closest package.json☆121Updated last year
- Reverse minimist. Convert an object of options into an array of command-line arguments☆185Updated 2 years ago
- Conditional promise chains☆60Updated 4 years ago
- Ensure a function is only called once☆162Updated last year
- Extract the actual stack of an error☆66Updated 2 years ago
- Check when the DOM has loaded like `DOMContentLoaded`☆110Updated 8 months ago
- Wait for any promise to be fulfilled☆54Updated 2 years ago
- Filter object keys and values into a new object☆101Updated 11 months ago
- Easy error subclassing and stack customization☆65Updated 4 years ago
- Check if a URL is absolute☆79Updated 3 years ago
- Import a module like with `require()` but from a given path☆86Updated 2 years ago
- Convert an Observable to a Promise☆47Updated last year
- Find multiple RegExp matches in a string☆92Updated 2 years ago
- Create a hash for file revving☆105Updated last year
- Truncate a string to a specific width in the terminal☆87Updated last year
- Replace all substring matches in a string☆88Updated 3 years ago
- Strip leading whitespace from each line in a string☆137Updated 3 years ago
- Write data to a random temporary file☆105Updated 9 months ago
- Check whether a package or organization name is available on npm☆170Updated last year
- Make unhandled promise rejections fail hard right away instead of the default silent fail☆106Updated 2 years ago
- Ensures a value is a valid error by making it one if not☆77Updated 3 years ago
- touch(1) for node☆124Updated 11 months ago
- Displays the execution time for Node.js modules loading by hooking require() calls☆254Updated 7 years ago
- Run a function exactly one time☆222Updated last year
- Import all modules in a directory☆138Updated 2 years ago
- Iterate over promises serially☆50Updated 2 years ago