A pure NodeJS port of https://github.com/progrium/pluginhook