1.0.0 • Published 3 years ago

@jswork/next-aop v1.0.0

Weekly downloads
1
License
MIT
Repository
-
Last release
3 years ago

next-aop

Aop for next.

version license size download

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.