Fuxor
const fuxor = fuxorconst fs = console//'Not really a file'
API
Add
Add what should be returned when the module is required
const fuxor = // Add one entry to be overriddenfuxor// Add one entry to be overriddenfuxor;// Add multiple entries at oncefuxor
Clear
Clear all entries
const fuxor = ;// After items have been addedfuxorclear // All entries have been removed
remove
Remove individual module to restore the original module
const fuxor = // After items have been addedfuxor // The module has been removed
reset
Resets back to default require behavior
const fuxor = // After items have been addedfuxor // require now works back to normal
org
Load a directory structure as an org
const fuxor = // given a directory named modules fuxor loads subdirectories// respects the package.json in each directory// - modules// -- myModule// -- myOtherModulefuxorconst myModule = const myOtherModule =