Skip to content
Cleanse your node.js program of require.cache malarky so that compile-to-js languages have to actually be compiled to js.
JavaScript CoffeeScript
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
LICENSE
README.md
cleanse.js
foo.coffee
package.json
test.js

README.md

coffee-cleanse

This is a nice linty-type thing to throw in your program, to make sure that you're remembering to compile your compiled-to-js language modules into js, as god intended.

Usage:

require('coffee-cleanse')

All modules that aren't .js/.json/.node-type modules are now out of the require.cache, and require.extensions is frozen solid.

Something went wrong with that request. Please try again.