aop-js

Aspect oriented program by javascript

Usage no npm install needed!

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

README

AOP

Aspect oriented program for javascript

There are 2 parts in this module, Aspect and aop

1.Aspect will extend the Funtion.prototype ,by add before / after... 2.aop will provide method aop.before(doFunction,beforeFunction)

===================== test

1.need install the mocha & should globally to run the test npm install mocha -g npm install should -g