Socket
Socket
Sign inDemoInstall

node-sass

Package Overview
Dependencies
Maintainers
2
Versions
148
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-sass - npm Package Compare versions

Comparing version 0.4.3 to 0.4.4

vagrant/lucid32/.vagrant/machines/default/virtualbox/id

17

package.json

@@ -5,7 +5,12 @@ {

"description": "wrapper around libsass",
"version": "0.4.3",
"version": "0.4.4",
"homepage": "https://github.com/andrew/node-sass",
"keywords": ["sass", "css", "libsass"],
"bugs" :
{ "url" : "https://github.com/andrew/node-sass/issues" },
"keywords": [
"sass",
"css",
"libsass"
],
"bugs": {
"url": "https://github.com/andrew/node-sass/issues"
},
"licenses": [

@@ -27,3 +32,3 @@ {

"bin": {
"node-sass" : "bin/node-sass"
"node-sass": "bin/node-sass"
},

@@ -37,3 +42,3 @@ "gypfile": true,

"colors": "0.6.0-1",
"optimist": "0.3.x"
"optimist": "0.4.x"
},

@@ -40,0 +45,0 @@ "devDependencies": {

@@ -21,13 +21,17 @@ ##node-sass

// OR
var css = sass.renderSync(scss_content);
var css = sass.renderSync(scss_content [, options]);
```
Especially, the options argument is optional. It support two attributes: `includePaths` and `outputStyle`, both of which are optional.
### Options
`includePaths` is an `Array`, you can add a sass import path.
The options argument is optional, though it's use is recommended. It support two attributes: `includePaths` and `outputStyle`.
`outputStyle` is a `String`, its value should be one of `'nested', 'expanded', 'compact', 'compressed'`.
#### includePaths
`includePaths` is an `Array` of path `String`s to look for any `@import`ed files. It is recommended that you use this option if you have **any** `@import` directives, as otherwise libsass may not find your depended-on files.
#### outputStyle
`outputStyle` is a `String` to determine how the final CSS should be rendered. Its value should be one of `'nested', 'expanded', 'compact', 'compressed'`.
[Important: currently the argument `outputStyle` has some problem which may cause the output css becomes nothing because of the libsass, so you should not use it now!]
Here is an example:
### Examples

@@ -40,3 +44,3 @@ ```javascript

// OR
console.log(sass.renderSync('body{background:blue; a{color:black;}}'));
console.log(sass.renderSync('body{background:blue; a{color:black;}}')/*, { includePaths: [ 'lib/', 'mod/' ], outputStyle: 'compressed' }*/);
```

@@ -80,7 +84,9 @@

## TODO
## Contributors
Special thanks to the following people for submitting patches:
* better error handling
* file context
* folder context
Dean Mao
Brett Wilkins
litek
gonghao

@@ -87,0 +93,0 @@ ### Note on Patches/Pull Requests

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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