sindresorhus / onetimeLinks
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
Sorting:
- Reliably get the terminal window size☆142Updated last year
- Get an unused filename by appending a number if it exists: `file.txt` → `file (1).txt`☆140Updated 3 years ago
- Lazy number range generator☆81Updated last year
- Truncate a string to a specific width in the terminal☆87Updated last year
- Check if argv has a specific flag☆95Updated 3 years ago
- Indent each line in a string☆113Updated 3 years ago
- Simplified high resolution timing☆81Updated 9 months ago
- Find multiple RegExp matches in a string☆92Updated 3 years ago
- Exit the process when the `esc` key is pressed☆56Updated last year
- Hook and modify stdout and stderr☆54Updated 3 years ago
- 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☆156Updated last year
- Conditional promise chains☆61Updated 4 years ago
- Measure the time a promise takes to resolve☆70Updated last year
- Check if it's the first time the process is run☆78Updated 3 years ago
- Boxes for use in the terminal☆98Updated 11 months ago
- Scan npm for available package names☆101Updated 4 years ago
- Get all property keys of an object including non-enumerable and inherited ones☆108Updated 3 years ago
- Get PID from a port☆79Updated 4 years ago
- Check if a namespace on npm is being hogged☆74Updated 5 years ago
- Embed data in other data and easily extract it when needed☆73Updated 3 years ago
- Parse text columns, like the output of unix commands☆82Updated 3 years ago
- Toggle the CLI cursor☆110Updated 11 months ago
- Convenience wrapper for Got to interact with the GitHub API☆176Updated 2 years ago
- Check when the DOM has loaded like `DOMContentLoaded`☆110Updated 10 months ago
- Reverse minimist. Convert an object of options into an array of command-line arguments☆185Updated 2 years ago
- Get the first path that exists on disk of multiple paths☆59Updated 2 years ago
- Run the Node.js binary no matter what☆138Updated 4 years ago
- Create a lazily evaluated value☆70Updated 4 years ago
- Copy a file☆121Updated last year