Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

css2stylus

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

css2stylus - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

2

lib/css2stylus.js

@@ -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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc