eflex-coffeescript-register-cache

cache the compiled required coffeescript modules to improve startup time

Usage no npm install needed!

<script type="module">
  import eflexCoffeescriptRegisterCache from 'https://cdn.skypack.dev/eflex-coffeescript-register-cache';
</script>

README

coffeescript-register-cache

require() cache for CoffeeScript 2 inspired by git://github.com/guillaume86/coffee-register-cache

usage

  require('coffeescript2-register-cache')('/usr/me/cache')

The exported function takes a cachePath parameter.

Alternatively the path can be set with an env var: COFFEE_REGISTER_CACHE_CACHE_DIR.

If not set the path will default to "PROJECT-ROOT/.coffee-cache".