sindresorhus / onetimeLinks
Ensure a function is only called once
☆163Updated last year
Alternatives and similar repositories for onetime
Users that are interested in onetime are comparing it to the libraries listed below
Sorting:
- Truncate a string to a specific width in the terminal☆87Updated last month
- 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`☆142Updated last month
- Lazy number range generator☆82Updated last year
- Get all property keys of an object including non-enumerable and inherited ones☆109Updated 4 years ago
- Hook and modify stdout and stderr☆55Updated last month
- Check if argv has a specific flag☆93Updated 4 years ago
- Copy a file☆121Updated 2 months ago
- Exit the process when the `esc` key is pressed☆57Updated last year
- Block users from running your app with root permissions☆99Updated 2 years ago
- Measure the time a promise takes to resolve☆71Updated last year
- Filter object keys and values into a new object☆104Updated last year
- Create a lazily evaluated value☆69Updated 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
- Conditional promise chains☆63Updated 4 years ago
- Round a number to a specific number of decimal places: 1.234 → 1.2☆160Updated last month
- Indent each line in a string☆113Updated 3 years ago
- Find multiple RegExp matches in a string☆90Updated 3 years ago
- Embed data in other data and easily extract it when needed☆75Updated 4 years ago
- Get the first path that exists on disk of multiple paths☆60Updated last month
- Extract the actual stack of an error☆67Updated 3 years ago
- Check if it's the first time the process is run☆81Updated last month
- Run the Node.js binary no matter what☆139Updated last month
- While a condition returns true, calls a function repeatedly, and then resolves the promise☆57Updated last year
- Scan npm for available package names☆101Updated 4 years ago
- Check if a path is a file, directory, or symlink☆79Updated last year
- Convert the result of `process.hrtime()` to seconds, milliseconds, nanoseconds☆53Updated 3 years ago
- Wait for any promise to be fulfilled☆56Updated 3 years ago
- Simplified high resolution timing☆84Updated last year