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
- Truncate a string to a specific width in the terminal☆87Updated 2 weeks ago
- Get an unused filename by appending a number if it exists: `file.txt` → `file (1).txt`☆143Updated 2 months ago
- Lazy number range generator☆82Updated last year
- Copy a file☆121Updated 2 months ago
- Get all property keys of an object including non-enumerable and inherited ones☆109Updated 4 years ago
- Measure the time a promise takes to resolve☆71Updated 2 years ago
- Find multiple RegExp matches in a string☆90Updated 3 years ago
- Block users from running your app with root permissions☆99Updated 2 years ago
- Check if it's the first time the process is run☆81Updated last month
- Filter object keys and values into a new object☆104Updated last year
- Check if argv has a specific flag☆94Updated 4 years ago
- Replace all substring matches in a string☆89Updated 4 years ago
- Run the Node.js binary no matter what☆139Updated last month
- Indent each line in a string☆113Updated 3 years ago
- Boxes for use in the terminal☆104Updated last year
- Check whether a package or organization name is available on npm☆171Updated last year
- Clean up regular expressions☆62Updated last year
- Extract the actual stack of an error☆67Updated 3 years ago
- Round a number to a specific number of decimal places: 1.234 → 1.2☆160Updated last month
- Simplified high resolution timing☆84Updated last year
- Hook and modify stdout and stderr☆56Updated 2 months ago
- Exit the process when the `esc` key is pressed☆57Updated last year
- Conditional promise chains☆63Updated 4 years ago
- Reverse minimist. Convert an object of options into an array of command-line arguments☆185Updated 2 years ago
- Toggle the CLI cursor☆112Updated last year
- Wait for any promise to be fulfilled☆56Updated 3 years ago
- Create a lazily evaluated value☆69Updated 4 years ago
- Check if a path is a file, directory, or symlink☆79Updated last year
- Scan npm for available package names☆101Updated 5 years ago