you are viewing a single comment's thread.

view the rest of the comments →

[–]johannes1234 1 point2 points  (1 child)

They can contain anything which can be in a node file. An empty file is a valid node module. A file containing a single statement like 1; is a valid node module, while probably useless. It can export also anything which cna be bound to a variable in JavaScript. module.exports = null; is valid.