sindresorhus / onetime
Ensure a function is only called once
☆162Updated last year
Alternatives and similar repositories for onetime:
Users that are interested in onetime are comparing it to the libraries listed below
- Truncate a string to a specific width in the terminal☆87Updated last year
- Reliably get the terminal window size☆141Updated last year
- Block users from running your app with root permissions☆98Updated last year
- Round a number to a specific number of decimal places: 1.234 → 1.2☆155Updated last year
- Lazy number range generator☆81Updated last year
- Get an unused filename by appending a number if it exists: `file.txt` → `file (1).txt`☆140Updated 2 years ago
- Check if your package was installed globally☆70Updated last year
- Check if something is a Node.js stream☆110Updated 4 months ago
- Get the first path that exists on disk of multiple paths☆58Updated 2 years ago
- Find multiple RegExp matches in a string☆92Updated 2 years ago
- Copy a file☆121Updated last year
- Check if argv has a specific flag☆94Updated 3 years ago
- Check whether a package or organization name is available on npm☆169Updated last year
- Get all property keys of an object including non-enumerable and inherited ones☆108Updated 3 years ago
- Hook and modify stdout and stderr☆54Updated 2 years ago
- Exit the process when the `esc` key is pressed☆56Updated last year
- Ensures a value is a valid error by making it one if not☆77Updated 3 years ago
- Filter object keys and values into a new object☆101Updated 9 months ago
- Indent each line in a string☆113Updated 2 years ago
- Run the Node.js binary no matter what☆138Updated 4 years ago
- Parse text columns, like the output of unix commands☆82Updated 3 years ago
- Reverse minimist. Convert an object of options into an array of command-line arguments☆185Updated 2 years ago
- Extract the actual stack of an error☆66Updated 2 years ago
- Simplified high resolution timing☆79Updated 6 months ago
- Get PID from a port☆79Updated 4 years ago
- Check when the DOM has loaded like `DOMContentLoaded`☆109Updated 7 months ago
- Check if stdout or stderr is interactive☆116Updated last year
- Run promise-returning & async functions a specific number of times concurrently☆39Updated 3 years ago
- Clean up regular expressions☆62Updated 7 months ago
- Reliable way to to get the height and width of the terminal/console in a node.js environment.☆83Updated 7 months ago