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☆144Updated last year
- Get an unused filename by appending a number if it exists: `file.txt` → `file (1).txt`☆141Updated 3 weeks ago
- Truncate a string to a specific width in the terminal☆87Updated 2 weeks ago
- Lazy number range generator☆81Updated last year
- Measure the time a promise takes to resolve☆70Updated last year
- Filter object keys and values into a new object☆104Updated last year
- Check if it's the first time the process is run☆79Updated 2 weeks ago
- Find multiple RegExp matches in a string☆90Updated 3 years ago
- Exit the process when the `esc` key is pressed☆56Updated last year
- Block users from running your app with root permissions☆98Updated 2 years ago
- Run the Node.js binary no matter what☆139Updated 2 weeks ago
- Check if argv has a specific flag☆93Updated 4 years ago
- Simplified high resolution timing☆82Updated last year
- Get all property keys of an object including non-enumerable and inherited ones☆108Updated 4 years ago
- Check whether a package or organization name is available on npm☆171Updated last year
- Boxes for use in the terminal☆103Updated last year
- Copy a file☆121Updated last month
- Create a lazily evaluated value☆69Updated 4 years ago
- Round a number to a specific number of decimal places: 1.234 → 1.2☆160Updated 2 weeks ago
- Extract the actual stack of an error☆66Updated 3 years ago
- Get the first path that exists on disk of multiple paths☆59Updated 2 weeks ago
- Get PID from a port☆79Updated 4 years ago
- Reverse minimist. Convert an object of options into an array of command-line arguments☆184Updated 2 years ago
- Parse text columns, like the output of unix commands☆82Updated 3 weeks ago
- Indent each line in a string☆113Updated 3 years ago
- Hook and modify stdout and stderr☆54Updated 3 weeks ago
- Clean up regular expressions☆62Updated last year
- Convert a string/Buffer/Uint8Array to a readable stream☆90Updated 2 years ago
- Conditional promise chains☆62Updated 4 years ago
- Check if stdout or stderr is interactive☆116Updated last year