css2stylus
Advanced tools
Comparing version 0.1.3 to 0.1.4
@@ -118,3 +118,3 @@ /*! | ||
declaration.replace(/([^:;]+):([^;]+)/g, function (_declaration, property, value) { | ||
declaration.replace(/([^:;]+):(.+);$/mg, function (_declaration, property, value) { | ||
path.declarations.push({ | ||
@@ -121,0 +121,0 @@ property: self.trim(property), |
{ | ||
"name": "css2stylus", | ||
"description": "Converts CSS to Stylus.", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"author": "Denis Ciccale (@tdecs)", | ||
@@ -15,6 +15,6 @@ "homepage": "http://css2stylus.com", | ||
"licenses": [ | ||
{ | ||
"type": "MIT", | ||
"url": "http://github.com/dciccale/css2stylus.js/blob/master/LICENSE.txt" | ||
} | ||
{ | ||
"type": "MIT", | ||
"url": "http://github.com/dciccale/css2stylus.js/blob/master/LICENSE.txt" | ||
} | ||
], | ||
@@ -26,5 +26,12 @@ "main": "./lib/css2stylus", | ||
"preferGlobal": "true", | ||
"dependencies": {}, | ||
"dependencies": { | ||
"yargs": "^1.2.2" | ||
}, | ||
"devDependencies": {}, | ||
"keywords": ["css2stylus", "css", "stylus", "converter"], | ||
"keywords": [ | ||
"css2stylus", | ||
"css", | ||
"stylus", | ||
"converter" | ||
], | ||
"engines": [ | ||
@@ -31,0 +38,0 @@ "node >= 0.6.0" |
@@ -20,3 +20,23 @@ # [css2stylus.js](http://css2stylus.com) [![NPM version](https://badge.fury.io/js/css2stylus.png)](http://badge.fury.io/js/css2stylus) | ||
```bash | ||
$ css2stylus | ||
Usage: css2stylus [options] <file1.css> <file2.css> | ||
Supports bash-style piping from stdin to stdout, e.g. `cat myFile.css | css2stylus` outputs myFile.css as stylus. Useful for integrating into an editor of choice. | ||
Examples: | ||
css2stylus -u -i 4 file1.css Use 4 space ndent and convert file1.css while unprefixing. | ||
css2stylus -c file1.css file2.css Preserve CSS syntax while converting multiple files. | ||
Options: | ||
-u, --unPrefix Un-prefix any property with vendor prefixes. | ||
-c, --cssSyntax Keep CSS syntax punctuation. | ||
-f, --force Overwrite existing .styl files | ||
-i, --indent Set indentation level | ||
``` | ||
Convert any css file: | ||
```bash | ||
@@ -28,2 +48,12 @@ $ css2stylus myfile.css | ||
The binary is also capable of piping from stdin, stdout. | ||
This is useful for integrating the binary with Vim or another editor of your choice. | ||
Vim mapping to convert the selected CSS text to stylus: | ||
``` | ||
" CSS2Stylus | ||
:vnoremap <leader>cs :!css2stylus -u -i 4<cr><esc> | ||
``` | ||
### Browser | ||
@@ -30,0 +60,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13992
88
1
+ Addedyargs@^1.2.2
+ Addedyargs@1.3.3(transitive)