this
(in the context of a module) is the same as exports
in node.js. However you should generally use exports
/module.exports
instead, so that it’s explicitly clear what you’re modifying.
More Related Contents:
- ‘this’ different between REPL and script
- What is the ‘global’ object in NodeJS
- Why is ‘this’ undefined inside class method when using promises? [duplicate]
- How does require() in node.js work?
- How to bind methods when destructuring an object in JavaScript?
- How do I pass command line arguments to a Node.js program?
- Is it bad practice to have a constructor function return a Promise?
- How to parse JSON using Node.js? [closed]
- Javascript “this” pointer within nested function
- Best way to call an asynchronous function within map?
- How to avoid long nesting of asynchronous functions in Node.js
- Understanding Asynchronous Code in Layman’s terms
- Node.js can’t create Blobs?
- Is there a template engine for Node.js? [closed]
- TypeError: firebase.storage is not a function
- Module not found: Error: Can’t resolve ‘crypto’
- requestAnimationFrame with this keyword
- Inserting and Querying Date with MongoDB and Nodejs
- Socket.io + PhoneGap
- How many concurrent setTimeouts before performance issues?
- Vue js error: Component template should contain exactly one root element
- setPresence activity type in discord.js v14 can only be set to “PLAYING”
- Discord.js – Cooldown for a command for each user not all users
- Checking if a message was sent from a DM not working
- Upload Base64 Image Facebook Graph API
- Discord.js: Invalid bitfield flag or number: GUILDS
- Promise.all().then() resolve?
- Is there a limit on the size of a string in JSON with Node.js?
- Calling Express Route internally from inside NodeJS
- what happens when a Promise never resolves? [duplicate]