https://github.com/osdio/sohook
A hook javascript tools.
https://github.com/osdio/sohook
Last synced: 25 days ago
JSON representation
A hook javascript tools.
- Host: GitHub
- URL: https://github.com/osdio/sohook
- Owner: osdio
- License: mit
- Created: 2014-10-25T14:08:36.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-10-25T14:45:35.000Z (over 10 years ago)
- Last Synced: 2025-05-07T08:57:51.142Z (25 days ago)
- Language: CoffeeScript
- Size: 145 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Just a hook javascript tools.
This is an example:
```
hook = require 'shook'test1 = ()->
hook.doAction()
console.log 'do some things'hookAction = ()->
console.log 'this is hook action!'
hookAction2 = () ->
console.log 'this is hook action2'
hook.addAction test1, hookAction, 1
hook.addAction test1, hookAction2, 2test1()
hook.removeAction test1, hookAction
test1()```