🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis
Socket
Book a DemoInstallSign in
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…)

latest
Source
npmnpm
Version
0.1.1
Version published
Weekly downloads
40
-11.11%
Maintainers
1
Weekly downloads
 
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

Sass

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