1.0.0 • Published 3 years ago
@jswork/next-aop v1.0.0
next-aop
Aop for next.
installation
npm install -S @jswork/next-aop
usage
import '@jswork/next-aop';
console.log = nx.aop(console.log, {
before: function (oldConsole) {
oldConsole('=--before--=');
},
after: function (oldConsole) {
oldConsole('=--after--=');
},
});
// test:
console.log('---abc---');
// =--before--=
// ---abc---
// =--after--=
license
Code released under the MIT license.
1.0.0
3 years ago