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☆141Updated last year
- Get an unused filename by appending a number if it exists: `file.txt` → `file (1).txt`☆140Updated 3 years ago
- Lazy number range generator☆81Updated last year
- Block users from running your app with root permissions☆98Updated last year
- Truncate a string to a specific width in the terminal☆87Updated last year
- Toggle the CLI cursor☆108Updated 10 months ago
- Check if your package was installed globally☆70Updated last year
- Check whether a package or organization name is available on npm☆170Updated last year
- Parse text columns, like the output of unix commands☆82Updated 3 years ago
- Run the Node.js binary no matter what☆138Updated 4 years ago
- Check when the DOM has loaded like `DOMContentLoaded`☆110Updated 10 months ago
- Clean up regular expressions☆62Updated 10 months ago
- Check if argv has a specific flag☆95Updated 3 years ago
- Check if stdout or stderr is interactive☆116Updated last year
- Find multiple RegExp matches in a string☆92Updated 2 years ago
- Extract the actual stack of an error☆66Updated 2 years ago
- Reverse minimist. Convert an object of options into an array of command-line arguments☆185Updated 2 years ago
- Embed data in other data and easily extract it when needed☆73Updated 3 years ago
- Create a HTML element string☆91Updated 7 months ago
- Check if a namespace on npm is being hogged☆74Updated 5 years ago
- Get the first path that exists on disk of multiple paths☆58Updated 2 years ago
- Copy a file☆121Updated last year
- Tap into a promise chain without affecting its value or state☆132Updated 4 years ago
- Get the path of the parent module☆77Updated last year
- Define a lazily evaluated property on an object☆65Updated 2 years ago
- Check if something is a Node.js stream☆112Updated 7 months ago
- Convenience wrapper for Got to interact with the GitHub API☆176Updated 2 years ago
- Easy error subclassing and stack customization☆65Updated 4 years ago
- Convert bytes to a human readable string: 1337 → 1.34 kB☆68Updated 3 years ago
- Exit the process when the `esc` key is pressed☆56Updated last year