sass-css-stream
Advanced tools
Comparing version 0.0.1 to 0.1.0
@@ -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` |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
3208
7
22
26
1
1