Effortless live compiling as well as reloading for TypeScript.
CookTS is a simple setup for live reloading TypeScript and JavaScript files using nodemon
and ts-node
. It allows you to develop your TypeScript projects with ease, automatically recompiling and restarting the application when changes are detected.
- Node.js
- npm
- Install the dependencies:
npm install
2.To start the application with live reloading,
If your file path is src/index.ts run:
npx cookts
else:
npx cookts file_name.ts
or
npx cookts dir/file_name.ts