0.3.9 • Published 8 years ago

css-lexer v0.3.9

Weekly downloads
-
License
ISC
Repository
-
Last release
8 years ago

CSS Lexer

Just an experiment

Usage

$ npm install -g css-lexer
$ css-lexer some-file

Result

// Input (some-file.txt)
btn-bing:
	- background-color: red;
	- color: red;
	- float: left;

// Output
[
	{
	 	element: 'btn-bing',
		tokens: [ 'background-color:red', 'color:blue' ],
		css: '{ background-color: red; color: blue; }'
	}
]

It creates an structure for web-components

elements/
	elements.html // containes the imports
	btn-bing/ // directory
		btn-bing.html // automatically linked to elements.html
0.3.9

8 years ago

0.3.8

8 years ago

0.3.7

8 years ago

0.3.5

8 years ago

0.2.4

8 years ago

0.1.4

8 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.0

8 years ago