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

coffeepress

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

coffeepress

helps combine multiple (coffee|java)script files into a single file

  • 0.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Coffeepress

Helps package coffeescript files into a single file for evaluation to js.

Notes:

Coffeepress uses synchronous fs calls, as this is mainly used as a utility before
an app is loaded, and therefore the performance of async calls shouldn't really matter.

Usage

new Coffeepress([options]).run(callback);

The options hash takes several parameters:

Example

var Coffeepress = require('coffeepress');

new Coffeepress({
  filename : './lib/formloader.coffee'
}).run(function(err, data){
  if (err) throw err
  fs.writeFile('./public/javascripts/formloader.coffee', data, 'UTF-8', function() {
    fs.writeFile('./public/javascripts/formloader.js', coffee.compile(data), 'UTF-8', function() {
      console.log('done');
    });
  });
});

Templating

The following functions are available for use within the templates processed by coffeepress

License

MIT

Keywords

FAQs

Package last updated on 14 Aug 2012

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