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

compass-options

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

compass-options

A small Node module for parsing Compass's config.rb file into options for use in Node projects (especially Grunt/Gulp/etc…)

  • 0.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Compass-Options

A small Node module for parsing Compass's config.rb file into options for use in Node projects (especially Grunt/Gulp/etc…)

Installation

$ npm install compass-options --save-dev

Usage

Configure your Compass config.rb file as normal. Currently reads in the following settings with the following defaults:

  • http_path - '.'
  • css_dir - 'css'
  • sass_dir - 'sass'
  • images_dir - 'images'
  • javascripts_dir - 'js'
  • fonts_dir - 'fonts'
//////////////////////////////
// Get directories from Compass settings
////////////////////////////// 
var dirs = require('compass-options').dirs({
  'config': './config.rb', // Points to config.rb relative to this file. Defaults to './config.rb'
  'trailing': false //  Whether or not to include a trailing slash for directories
});

//////////////////////////////
// Get full paths from Compass settings (http_path + directory)
//////////////////////////////
var paths = require('compass-options').paths({
  'config': './config.rb', // Points to config.rb relative to this file. Defaults to './config.rb'
  'trailing': false //  Whether or not to include a trailing slash for paths
});

Keywords

FAQs

Package last updated on 08 Apr 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