---
title: "Discussion on \"A lawyers' guide to understanding \"module.exports\" and \"require\" in nodejs.\" | Hashnode"
description: "Discussion on \"A lawyers' guide to understanding \"module.exports\" and \"require\" in nodejs.\". Many times we in our day-to-day use of nodejs, we rely on requiring or importing some functionality to our current file. Requiring of a file and its importation is made possible with the \"require()\" function which reads, executes, and then returns th..."
url: "https://hashnode.com/posts/a-lawyers-guide-to-understanding-moduleexports-and-require-in-nodejs/607243c11494367be6d2a5e8"
---

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

Discussion

# [A lawyers' guide to understanding "module.exports" and "require" in nodejs.](https://legal-debugger.hashnode.dev/a-lawyers-guide-to-understanding-moduleexports-and-require-in-nodejs?utm_source=hashnode&utm_medium=feed)

Many times we in our day-to-day use of nodejs, we rely on requiring or importing some functionality to our current file. Requiring of a file and its importation is made possible with the "require()" function which reads, executes, and then returns th...

Apr 11, 2021 · 3 min read · legal-debugger.hashnode.dev  
Read the article

-   [#nodejs](https://hashnode.com/tag/nodejs)
-   [#javascript](https://hashnode.com/tag/javascript)

## Written by

[Tony Nta](https://hashnode.com/@legal-debugger)

@legal-debugger · Abuja, Nigeria

  
[View profile](https://hashnode.com/@legal-debugger)

I love learning and teaching and learning and teaching and.... you get the point :)

## Responses 1

Markdown supported · ⌘↵ to post

[Chioma Felix](https://hashnode.com/@chiomaa)

[Apr 13, 2021](https://hashnode.com/posts/a-lawyers-guide-to-understanding-moduleexports-and-require-in-nodejs/607243c11494367be6d2a5e8/comment/60753b0685f3a21e3926c7e8)

Amazing. New things to learn from Tony.

[Tony Nta](https://hashnode.com/@legal-debugger)

[Apr 16, 2021](https://hashnode.com/posts/a-lawyers-guide-to-understanding-moduleexports-and-require-in-nodejs/607243c11494367be6d2a5e8/comment/60753b0685f3a21e3926c7e8#reply-607a23a2eb2bd30d2d2251be)

thanks for the reading dear.
