Socket
Socket
Sign inDemoInstall

grunt-cssjanus

Package Overview
Dependencies
31
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.2 to 0.2.0

2

package.json
{
"name": "grunt-cssjanus",
"description": "Grunt plugin to convert CSS stylesheets between left-to-right and right-to-left",
"version": "0.1.2",
"version": "0.2.0",
"homepage": "https://github.com/yoavf/grunt-cssjanus",

@@ -6,0 +6,0 @@ "author": {

@@ -40,5 +40,13 @@ # grunt-cssjanus

#### options.processContent
Type: `Callback`
Default value: `false`
If set, the function will be called on the CSS after CSSJanus has run.
## Release History
0.2.0 - Add the process content callbaack to the be called on css after CSSJanus has run.
0.1.2 - Only outputs file creation message if file has been created

@@ -45,0 +53,0 @@

@@ -17,2 +17,3 @@ /*

swapLeftRightInUrl: false,
processContent: false,
});

@@ -37,2 +38,5 @@ // Iterate over all specified file groups.

var rtlcss = cssjanus.transform( src, options.swapLtrRtlInUrl, options.swapLeftRightInUrl );
if ( options.processContent ) {
rtlcss = options.processContent( rtlcss, filepath );
}
if ( ! options.generateExactDuplicates && rtlcss == src ) {

@@ -39,0 +43,0 @@ grunt.log.writeln('Nothing to flip in ' + f.src );

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