Monday, 5 June 2017

What this is doing to the require statement?

I'm exploring with NodeJS and I've stumble upon the following syntax using the express debug module:

require('debug')(express:server);

What is it? I've never see this form before and doesn't really find a way to google it to retrieve information on it.

Does this form allow a sort of argument passing to the load module statement ?



via Dr I

No comments:

Post a Comment