Inbuilt watch mode for reloading server automatically in Deno


Deno is asynchronous JavaScript/TypeScript runtime. If you are not sure how and what’s of Deno, here is the links

watch mode

We have third party module like denon for hot reloading feature but deno itself have a standard feature watch (CLI flag) for us. It enable use to reloading the server when changes made to the main file.

You can specify the watch along with the running command. Remember it is in an early stage of development, as most of the libraries, so that you have specify a –unstable flag

 deno run --watch --unstable --allow-net  app.ts

It keep reloading the server since you made changes to it.

One of thing I love in Deno is they kept a decent manual for everything , all you need todo is , have a look

All of my Deno projects will be published on my GitHub Repo, so keep watching.

Published by

Manoj

A developer,teacher and a blogger obsessed with Python,Dart and open source world from India

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.