0.3.9 • Published 10 years ago

css-lexer v0.3.9

Weekly downloads
-
License
ISC
Repository
-
Last release
10 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

10 years ago

0.3.8

10 years ago

0.3.7

10 years ago

0.3.5

10 years ago

0.2.4

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.0

10 years ago