0.2.1 • Published 6 years ago
within-time v0.2.1
Within Time
Within-Time was made to facilitate handling time constraints when running Node.js files. Really, it's because I got tired of using my fans as an indicator of a broken recursive function.
Usage
With how small and focused in scope Within-Time is, I'd advise using good ol' npx to handle it.
Recommended
npx within-time <path>
Global
Of course, sometimes it's nice to not have to write npx every time, or perhaps you want to alias for maximum convenience. In that case, install via yarn globally and you can simply run the command.
yarn global add within-time
within-time <file-name>You can also pass relative paths to the file
within-time test/scenarios/doesNotClose.jswithin-time ./test/scenarios/doesNotClose.jsYou can also pass directory paths!
within-time test/scenariosUpcoming
- Nested directories
- Will need to consider resource limits, given nature of
child_process.fork
- Will need to consider resource limits, given nature of
- Configure time constraint via cli
- Prettier outputting
- Relevant examples?