🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

css-concat

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

css-concat - npm Package Compare versions

Comparing version
0.0.2
to
0.0.3
test/test

Sorry, the diff of this file is not supported yet

+5
-3

@@ -1,3 +0,5 @@

exports.concat = function(input) {
exports.concat = function(input, options) {
options = options || {
comments : true
};
var fs = require('fs'),

@@ -33,3 +35,3 @@ path = require('path'),

if (importIndex === index) {
if (importIndex === index && options.comments) {

@@ -36,0 +38,0 @@ output += '/*' + seperator + '\n';

@@ -5,3 +5,3 @@ {

"description": "Concatenate @imported CSS files.",
"version": "0.0.2",
"version": "0.0.3",
"repository": {

@@ -16,2 +16,5 @@ "type" : "git",

},
"scripts" : {
"test" : "node test/test.js"
},
"dependencies": {},

@@ -18,0 +21,0 @@ "devDependencies": {},

@@ -11,10 +11,11 @@ # CSS Concat

## From command-line
CSS Concat reads from `input.css` and writes to `output.css`. If you don't specify `output.css` explicitly, it will write to `input-out.css`.
CSS Concat reads from `input.css` and writes to `output.css`. If you don't specify `output.css` explicitly, it will write to `input-out.css`. Options currently only consist of `--no-comments`, which will disable automatic generation of comments - this will _not_ strip comments from the source files!
css-concat [input.css] [output.css]
css-concat [input.css] ([output.css] [options])
## From another node-module
Calling concat with the path to your CSS file, you will get a string containing the same output as the command-line version, including comments.
Calling concat with the path to your CSS file, you will get a string containing the same output as the command-line version. By default, comments are enabled - to disable them just pass along the appropriate options object.
var cssConcat = require('css-concat'),
outputString = cssConcat.concat('path/to/your.css');
options = { comments : true },
outputString = cssConcat.concat('path/to/your.css', options);

Sorry, the diff of this file is not supported yet