coffeescript_compiler_tools

Collection of useful helper methods for compiling CoffeeScript source code into executable JavaScript.

npm install coffeescript_compiler_tools
8 downloads in the last week
16 downloads in the last month

Coffeescript Compiler Tools

A collection of tools to compile Coffeescript source code into JavaScript functions.

Installation

Install like any other NPM module by adding it to package.json, doing an npm install.

Usage

compile_function

Compiler = require 'coffeescript_compiler_tools'

source = '(param) -> "The param is #{param}."'
result = Compiler.compile_function source
result('foo')   # => "The param is foo."
npm loves you