sindresorhus / onetimeLinks
Ensure a function is only called once
☆164Updated 2 years ago
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☆146Updated 2 years ago
- Lazy number range generator☆83Updated 2 years ago
- Get an unused filename by appending a number if it exists: `file.txt` → `file (1).txt`☆144Updated 4 months ago
- Truncate a string to a specific width in the terminal☆88Updated 3 months ago
- Check if argv has a specific flag☆96Updated 4 years ago
- Get all property keys of an object including non-enumerable and inherited ones☆110Updated 4 years ago
- Boxes for use in the terminal☆106Updated last year
- Exit the process when the `esc` key is pressed☆58Updated 2 years ago
- Check if it's the first time the process is run☆83Updated 4 months ago
- While a condition returns true, calls a function repeatedly, and then resolves the promise☆58Updated last year
- Indent each line in a string☆115Updated 3 years ago
- Hook and modify stdout and stderr☆57Updated 4 months ago
- Run the Node.js binary no matter what☆142Updated 4 months ago
- Clean up regular expressions☆63Updated last year
- Simplified high resolution timing☆85Updated last year
- Filter object keys and values into a new object☆105Updated last year
- Conditional promise chains☆63Updated 4 years ago
- Copy a file☆123Updated 5 months ago
- Round a number to a specific number of decimal places: 1.234 → 1.2☆160Updated 4 months ago
- Embed data in other data and easily extract it when needed☆76Updated 4 years ago
- Create a lazily evaluated value☆69Updated 4 years ago
- Get all email addresses in a string☆60Updated 4 years ago
- Extract the actual stack of an error☆68Updated 3 years ago
- Find multiple RegExp matches in a string☆91Updated 3 years ago
- Get PID from a port☆79Updated 5 years ago
- Wait for any promise to be fulfilled☆56Updated 3 years ago
- Replace all substring matches in a string☆90Updated 4 years ago
- Block users from running your app with root permissions☆100Updated 2 years ago
- Check if a path is a file, directory, or symlink☆80Updated last year
- Scan npm for available package names☆101Updated 5 years ago