Socket
Socket
Sign inDemoInstall

cssjoin

Package Overview
Dependencies
3
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    cssjoin

Extend css @import loaded file


Version published
Maintainers
1
Install size
76.9 kB
Created

Readme

Source

#CssJoinBuild Status Join css that @import syntax loaded file.

##Install

$ npm install -g cssjoin

##Usage Command line

$ cssjoin some.css

in node.js

var cssjoin = require('cssjoin');

//without option
cssjoin("sample.css",function(err,extendedCss){
  console.log(extendedCss);
});

// with option
cssjoin("sample.css"
  ,{
    "paths" : "./include/path"
  }
  ,function(err,extendedCss){
    console.log(extendedCss);
  }
);


##Example

Input

main.css

@import "dir/parts.css";

.main{
  float: left;
}

dir/parts.css

.block{
  color:red;
}

####And execute

$ cssjoin main.css

Output

.block{
  color:red;
}

.main{
  float: left;
}

Options

-p --include-paths

Add @import paths.

$ cssjoin some.css -p /include/path

if need set some paths can use separator ":"

$ cssjoin some.css -p /include/path:/include/path2:/include/path3

or on windows, use separator ";"

$ cssjoin some.css -p C:\\include\\path\\;C:\\include\\path2\\;C:\\include\\path3\\;

Keywords

FAQs

Last updated on 29 Jul 2014

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc