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
- Reliably get the terminal window size☆140Updated last year
- Simplified high resolution timing☆80Updated 7 months ago
- Get an unused filename by appending a number if it exists: `file.txt` → `file (1).txt`☆140Updated 3 years ago
- Write data to a random temporary file☆105Updated 9 months ago
- Replace all substring matches in a string☆88Updated 3 years ago
- Check when the DOM has loaded like `DOMContentLoaded`☆109Updated 8 months ago
- Check if a URL is absolute☆79Updated 3 years ago
- Displays the execution time for Node.js modules loading by hooking require() calls☆254Updated 7 years ago
- Make unhandled promise rejections fail hard right away instead of the default silent fail☆106Updated 2 years ago
- Conditional promise chains☆60Updated 4 years ago
- Reverse minimist. Convert an object of options into an array of command-line arguments☆185Updated 2 years ago
- Check if a path exists☆151Updated 3 years ago
- Generate a random integer☆87Updated 4 years ago
- Indent each line in a string☆113Updated 2 years ago
- Easy error subclassing and stack customization☆65Updated 4 years ago
- Start a promise chain☆58Updated 3 years ago
- Captures and cleans stack traces.☆194Updated last year
- Create a hash for file revving☆105Updated last year
- Import all modules in a directory☆138Updated 2 years ago
- Get namespaced config from the closest package.json☆121Updated last year
- Ensures a value is a valid error by making it one if not☆77Updated 3 years ago
- Check if argv has a specific flag☆95Updated 3 years ago
- Reliable way to to get the height and width of the terminal/console in a node.js environment.☆83Updated 8 months ago
- Import a module like with `require()` but from a given path☆85Updated 2 years ago
- Check whether a package or organization name is available on npm☆170Updated last year
- Check if something is a Node.js stream☆111Updated 5 months ago
- Run promise-returning & async functions a specific number of times concurrently☆39Updated 3 years ago
- Define a lazily evaluated property on an object☆65Updated 2 years ago
- Convert an Observable to a Promise☆47Updated last year
- Filter object keys and values into a new object☆101Updated 11 months ago