New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

compass-middleware

Package Overview
Dependencies
Maintainers
2
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

compass-middleware

compass-middleware ==================

  • 0.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

compass-middleware

compass middleware for expressjs.

  • Note that the implement of Compass compile is mostly modified from the source of grunt-contrib-compass but have removed grunt dependence.

install

npm install compass-middleware

usage

var compass = require( 'compass-middleware' );
var app = require( 'express' )();

app.use(compass({
      src: options.base,
      dest: options.tmpDir
    }, {
      sassDir: 'src',
      cssDir: 'src',
      imagesDir: 'src',
      generatedImagesDir: 'src',
      httpGeneratedImagesPath: 'http://localhost:3333/src',
      cacheDir: '.sass-cache',
      force: false
    }))

config

This middleware accepts two object as options:

compass( baseOptions, compassOptions )

baseOptions allows you to config source base and dest base

{
    src: '/my/project/src',
    dest: '/var/tmp/temporary'
}

compassOptions is just the same as grunt-contrib-compass options.

FAQs

Package last updated on 27 Sep 2014

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