Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

coffee-convert

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

coffee-convert

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

  • 0.1.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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

Keywords

FAQs

Package last updated on 20 Jan 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc