Recently was tweaking a node module and had to warn users on deprecated methods, truns out it's damn easy with util module.
Pinch of code :
1 2 3 4 5 6 7 8 9 10 11 12 | |
Let's import hello.js and try invoking hello :
1 2 3 4 5 | |
Happy hacking!
Recently was tweaking a node module and had to warn users on deprecated methods, truns out it's damn easy with util module.
Pinch of code :
1 2 3 4 5 6 7 8 9 10 11 12 | |
Let's import hello.js and try invoking hello :
1 2 3 4 5 | |
Happy hacking!