sindresorhus / onetimeLinks
Ensure a function is only called once
☆163Updated 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☆144Updated 2 years ago
- Get an unused filename by appending a number if it exists: `file.txt` → `file (1).txt`☆144Updated 2 months ago
- Lazy number range generator☆82Updated last year
- Truncate a string to a specific width in the terminal☆87Updated last month
- Block users from running your app with root permissions☆100Updated 2 years ago
- Get all property keys of an object including non-enumerable and inherited ones☆110Updated 4 years ago
- Extract the actual stack of an error☆68Updated 3 years ago
- Check whether a package or organization name is available on npm☆171Updated last year
- Find multiple RegExp matches in a string☆91Updated 3 years ago
- Measure the time a promise takes to resolve☆72Updated 2 years ago
- Check if it's the first time the process is run☆81Updated 2 months ago
- Check if argv has a specific flag☆95Updated 4 years ago
- Run the Node.js binary no matter what☆139Updated 2 months ago
- Boxes for use in the terminal☆104Updated last year
- Simplified high resolution timing☆84Updated last year
- Exit the process when the `esc` key is pressed☆57Updated last year
- Copy a file☆122Updated 3 months ago
- Wait for any promise to be fulfilled☆56Updated 3 years ago
- Hook and modify stdout and stderr☆56Updated 2 months ago
- Check when the DOM has loaded like `DOMContentLoaded`☆111Updated last year
- Filter object keys and values into a new object☆105Updated last year
- Reverse minimist. Convert an object of options into an array of command-line arguments☆186Updated 2 years ago
- While a condition returns true, calls a function repeatedly, and then resolves the promise☆58Updated last year
- Embed data in other data and easily extract it when needed☆75Updated 4 years ago
- Create a lazily evaluated value☆69Updated 4 years ago
- Indent each line in a string☆114Updated 3 years ago
- Conditional promise chains☆63Updated 4 years ago
- Round a number to a specific number of decimal places: 1.234 → 1.2☆160Updated 2 months ago
- Replace all substring matches in a string☆90Updated 4 years ago
- Clean up regular expressions☆63Updated last year