sindresorhus / onetime
Ensure a function is only called once
☆162Updated last year
Related projects ⓘ
Alternatives and complementary repositories for onetime
- Reliably get the terminal window size☆140Updated last year
- Truncate a string to a specific width in the terminal☆86Updated last year
- Get an unused filename by appending a number if it exists: `file.txt` → `file (1).txt`☆141Updated 2 years ago
- Check whether a package or organization name is available on npm☆168Updated 9 months ago
- Check if argv has a specific flag☆94Updated 3 years ago
- Lazy number range generator☆82Updated 10 months ago
- Filter object keys and values into a new object☆100Updated 5 months ago
- Convert an object of time properties to milliseconds: `{seconds: 2}` → `2000`☆158Updated 3 years ago
- Find multiple RegExp matches in a string☆93Updated 2 years ago
- Copy a file☆121Updated last year
- Get PID from a port☆80Updated 3 years ago
- Measure the time a promise takes to resolve☆70Updated last year
- Block users from running your app with root permissions☆98Updated last year
- Hook and modify stdout and stderr☆54Updated 2 years ago
- Iterate over promises serially☆50Updated 2 years ago
- Check if a namespace on npm is being hogged☆73Updated 5 years ago
- Boxes for use in the terminal☆96Updated 3 months ago
- Clean up regular expressions☆61Updated 3 months ago
- Run the Node.js binary no matter what☆138Updated 3 years ago
- Extract the actual stack of an error☆67Updated 2 years ago
- Check if your package was installed globally☆70Updated last year
- Ensures a value is a valid error by making it one if not☆78Updated 2 years ago
- Check if it's the first time the process is run☆79Updated 3 years ago
- Convert a URL to a valid filename☆80Updated 11 months ago
- Get all property keys of an object including non-enumerable and inherited ones☆109Updated 3 years ago
- Create an error from multiple errors☆245Updated last year
- Get a progress bar as a string☆95Updated 6 years ago
- Get namespaced config from the closest package.json☆120Updated last year
- Wait for a condition to be true☆155Updated last year
- Convenience wrapper for Got to interact with the GitHub API☆176Updated 2 years ago