aop-s

AOP in JavaScript

Usage no npm install needed!

<script type="module">
  import aopS from 'https://cdn.skypack.dev/aop-s';
</script>

README

AOPnpm version

AOP in JavaScript

Install

Install with npm

$ npm install aop-s --save

Usage

  • register advice
var AOP = require('aop-s');
AOP.before('func',function(args){});
AOP.after(/^func/,function(args){})
AOP.around(/^func/,function(args){},function(ret,args){})
  • execution
func.exec(args);