Skip to content

afeiship/next-aop

Repository files navigation

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.

About

Aop for next.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published