Open fabiosantoscode opened 9 years ago
same here, I want to use a module that exports just a function : require('my-module')('use', 'no', 'properties', 'exported')
- Fortunately the project is mine so I'm also exporting a property - but for users it could be confusing. Thanks
If I have a module
mymodule
which exports a function with properties, as follows:How am I supposed to "statify" it, without choosing whether to restrict my client code to use either the function or the properties?
My use case is my project over at fabiosantoscode/require-emscripten, which is a node module exporting a function which also has properties.