---
title: "Discussion on \"Node.js: using fs.watch to re-import CommonJS modules.\" | Hashnode"
description: "Discussion on \"Node.js: using fs.watch to re-import CommonJS modules.\". Disclaimer. This is an investigation into what is possible. Not a fully-blown solution into how to reload modules without restarting the whole server.\n\nIn a previous article, I was investigating how to use require.cache to refresh a module by deletin..."
url: "https://hashnode.com/posts/nodejs-using-fswatch-to-re-import-commonjs-modules/673a4071ece0894219008f99"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Node.js: using fs.watch to re-import CommonJS modules.](https://gemmablack.dev/nodejs-using-fswatch-to-re-import-commonjs-modules?utm_source=hashnode&utm_medium=feed)

Disclaimer. This is an investigation into what is possible. Not a fully-blown solution into how to reload modules without restarting the whole server. In a previous article, I was investigating how to use require.cache to refresh a module by deletin...

Nov 17, 2024 · 3 min read · gemmablack.dev  
Read the article

-   [#fswatch](https://hashnode.com/tag/fswatch)
-   [#requirecache](https://hashnode.com/tag/requirecache)
-   [#nodejs](https://hashnode.com/tag/nodejs)
-   [#commonjs](https://hashnode.com/tag/commonjs)

## Written by

[Gemma Black](https://hashnode.com/@GemmaBlack)

@GemmaBlack · London, UK

  
[View profile](https://hashnode.com/@GemmaBlack)

I'm a Senior Software Engineer. With 10+ years working within tech teams, and 20+ years working with code, I develop across the stack, assisting with application design, maintenance, deployment and DevOps within the AWS Cloud.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
