You're viewing a comment by Wael and its responses.

Wael Permalink
December 06, 2011, 19:42

Is requre a keyword in Node js?

Comment Responses

December 06, 2011, 21:42

It's just a function, it's not a keyword. You can redefine it.

pkrumins$ node
> typeof require
> require = function (x) { console.log(x) }
> require('meow')

Reply To This Comment

(why do I need your e-mail?)

(Your twitter handle, if you have one.)

Type the word "quake3_286": (just to make sure you're a human)

Please preview the comment before submitting to make sure it's OK.