Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork1
Syntax Tree support for CSS
License
NotificationsYou must be signed in to change notification settings
ruby-syntax-tree/syntax_tree-css
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Syntax Tree support for CSS.
Add this line to your application's Gemfile:
gem"syntax_tree-css"
And then execute:
$ bundle install
Or install it yourself as:
$ gem install syntax_tree-css
From code:
require"syntax_tree/css"ppSyntaxTree::CSS.parse(source)# print out the ASTputsSyntaxTree::CSS.format(source)# format the AST
From the CLI:
$ stree ast --plugins=css file.css(css-stylesheet (style-rule (selectors (type-selector (delim-token"*")) ) (declarations (declaration hello (ident-token"world"), (semicolon-token)) ) ))
or
$ stree format --plugins=css file.css* { hello: world;}
or
$ stree write --plugins=css file.cssfile.css 1ms
Bug reports and pull requests are welcome on GitHub athttps://github.com/ruby-syntax-tree/syntax_tree-css.
The gem is available as open source under the terms of theMIT License.
About
Syntax Tree support for CSS
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Sponsor this project
Uh oh!
There was an error while loading.Please reload this page.
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.
Contributors4
Uh oh!
There was an error while loading.Please reload this page.