We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Hi,
I am trying to hook a function in node module, but I got error as mentioned in the title, below is my code:
var hook = require('node-hook'); function Request(method, url) { alert(url); } hook.hook('.js', Request); require('./node_modules/module_name/index');
Is it possible on the way I am trying to archive?
The text was updated successfully, but these errors were encountered:
Could you return the source after printing the filename? See the same example working in https://github.com/bahmutov/node-hook/blob/master/test/use-case.js
Sorry, something went wrong.
No branches or pull requests
Hi,
I am trying to hook a function in node module, but I got error as mentioned in the title, below is my code:
var hook = require('node-hook');
function Request(method, url) {
alert(url);
}
hook.hook('.js', Request);
require('./node_modules/module_name/index');
Is it possible on the way I am trying to archive?
The text was updated successfully, but these errors were encountered: