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
- Simplified high resolution timing☆79Updated 6 months ago
- Check when the DOM has loaded like `DOMContentLoaded`☆109Updated 7 months ago
- Reliably get the terminal window size☆141Updated last year
- Reliable way to to get the height and width of the terminal/console in a node.js environment.☆83Updated 7 months ago
- Ensure a function is only called once☆162Updated last year
- Truncate a string to a specific width in the terminal☆87Updated last year
- Write data to a random temporary file☆105Updated 7 months ago
- Easy error subclassing and stack customization☆66Updated 4 years ago
- touch(1) for node☆123Updated 9 months ago
- Displays the execution time for Node.js modules loading by hooking require() calls☆253Updated 7 years ago
- Get an unused filename by appending a number if it exists: `file.txt` → `file (1).txt`☆140Updated 2 years ago
- Conditional promise chains☆60Updated 3 years ago
- Wait for any promise to be fulfilled☆54Updated 2 years ago
- Get namespaced config from the closest package.json☆121Updated last year
- Check if it's the first time the process is run☆78Updated 3 years ago
- Lazy number range generator☆81Updated last year
- Define a lazily evaluated property on an object☆64Updated 2 years ago
- Create a hash for file revving☆105Updated last year
- Reverse minimist. Convert an object of options into an array of command-line arguments☆185Updated 2 years ago
- Check if a path exists☆150Updated 3 years ago
- Filter object keys and values into a new object☆101Updated 9 months ago
- Generate random numbers that are consecutively unique☆116Updated 11 months ago
- Ensures a value is a valid error by making it one if not