coffee-convert
Express middleware. Converts all coffee files in the directory to the js files. Out js strings are stored in memory.
Last updated 3 years ago by zabkwak .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install coffee-convert 
SYNC missed versions from official npm registry.

Coffee Converter

Express middleware. Converts all coffee files in the directory to the js files accesible via URL. Out js strings are stored in memory.

Usage

express = require "express"
coffee = require "coffee-convert"

port = 8080
app = express()

app.use coffee()

app.listen port
console.log "Listening on #{port}"

Options

  • srcDir Directory is scanned for .coffee files. Default: ./assets
  • outDir Directory in uri for js link. Default: /script
  • cacheTime Time in seconds for which is the js file cached in the browser. Default: 86400
  • minify If true the js file is minified. Default: true
  • lazy If true files are converted when they're needed. Otherwise files are converted after the middleware usage. Default: false
  • debug If true js files are not taken from cache, every request generates new js script and log info is showed in stdout. Default: false

Current Tags

  • 0.1.2                                ...           latest (3 years ago)

3 Versions

  • 0.1.2                                ...           3 years ago
  • 0.1.1                                ...           5 years ago
  • 0.1.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (3)
Dev Dependencies (1)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |