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

sass-css-stream

Package Overview
Dependencies
Maintainers
3
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sass-css-stream - npm Package Compare versions

Comparing version 0.0.1 to 0.1.0

test/sampleStyle.scss

6

index.js

@@ -5,3 +5,3 @@ var through = require( "through" );

module.exports = function( file ) {
module.exports = function( file, opts ) {
var data = "";

@@ -18,5 +18,5 @@ if( file !== undefined && path.extname( file ) !== ".scss" )

function end() {
this.queue( sass.renderSync( data ) );
this.queue( sass.renderSync( data, opts ) );
this.queue( null );
}
};
};
{
"name": "sass-css-stream",
"version": "0.0.1",
"version": "0.1.0",
"description": "sass to css transform",
"main": "index.js",
"scripts": {
},
"scripts": {},
"repository": {

@@ -14,2 +13,3 @@ "type": "git",

"cartero",
"parcelify",
"sass",

@@ -16,0 +16,0 @@ "css"

sass-css-stream
===============
sass to css transform
A sass to css stream wrapper around [node-sass](https://github.com/andrew/node-sass). Returns a [through stream](https://github.com/dominictarr/through) that has sass contents written in and outputs the compiled css.
Can be used as a sass to css transform for [parcelify](https://github.com/rotundasoftware/parcelify).
#example
```javascript
var sassCssStream = require( '../' );
var fs = require( 'fs' );
var path = require( 'path' );
var inputFile = path.join( __dirname, "sampleStyle.scss" );
fs.createReadStream( inputFile ).pipe( sassCssStream( inputFile) ).pipe( process.stdout );
```
#usage
### sassCssStream( file [, opts ] )
`file` - the sass file being
`opts` - optional options hash passed through to `node-sass.renderSync`
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