Skip to content

Commit 7b7eca6

Browse files
committed
Updated docs and package.json for releasing v0.9.2
1 parent b6edc6f commit 7b7eca6

File tree

2 files changed

+24
-18
lines changed

2 files changed

+24
-18
lines changed

README.md

+22-16
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@ cssparser.js
88

99
cssparser.js is a parser that generates json matched with source css structure.
1010

11-
##Description
11+
## Description
1212

1313
* License: MIT license - [http://www.opensource.org/licenses/mit-license.php](http://www.opensource.org/licenses/mit-license.php)
1414
* Author : Chang W. Doh
1515

16-
##Demo
16+
## Demo
1717

1818
* [http://cwdoh.github.io/cssparser.js/demo/CSS_stringify.html](//cwdoh.github.io/cssparser.js/demo/CSS_stringify.html)
1919

20-
##Dependency
20+
## Dependency
2121

2222
Just want to use cssparser.js? Nothing needed.
2323

@@ -26,9 +26,9 @@ If want generating parser, install 'jison' before it.
2626
* Jison - [http://jison.org](http://jison.org )
2727

2828

29-
##Usage
29+
## Usage
3030

31-
###from Command-line
31+
### from Command-line
3232

3333

3434
First of all, you should install cssparser.
@@ -51,7 +51,7 @@ or
5151
$ cssparser cssFile -o output_file
5252
```
5353

54-
###from CommonJS Module
54+
### from CommonJS Module
5555

5656
You can generate javascript object from your javascript module.
5757

@@ -69,22 +69,22 @@ var ast = parser.parse(raw)
6969
var json = ast.toJSON(type)
7070
```
7171

72-
##Generating parser from source
72+
## Generating parser from source
7373

74-
###Getting jison & source
74+
### Getting jison & source
7575

7676
```bash
7777
$ git clone https://github.com/cwdoh/cssparser.js.git
7878
$ npm install
7979
```
8080

81-
###Generating parser from source
81+
### Generating parser from source
8282

8383
```bash
8484
$ npm run build
8585
```
8686

87-
##JSON Structure
87+
## JSON Structure
8888

8989
There are 3 types of JSON format.
9090

@@ -95,15 +95,15 @@ There are 3 types of JSON format.
9595
* atomic - most detailed. 'atomic' JSON has all pieces of each key & values in CSS.
9696
* e.g. length has numeric value & its unit like "100px" -> { "value": 100, "unit": "px" }
9797

98-
##Example
98+
## Example
9999

100100
Example is tested with rulesets of [http://css3please.com](http://css3please.com)
101101

102102
```bash
103103
cssparser example/test.css --console -i 4
104104
```
105105

106-
###Input
106+
### Input
107107

108108
```css
109109
@charset 'utf-8';
@@ -121,9 +121,9 @@ cssparser example/test.css --console -i 4
121121
}
122122
```
123123

124-
###JSON Output
124+
### JSON Output
125125

126-
####Type 'simple'
126+
#### Type 'simple'
127127

128128
```javascript
129129
[
@@ -246,7 +246,7 @@ cssparser example/test.css --console -i 4
246246

247247
```
248248

249-
####Type 'atomic'
249+
#### Type 'atomic'
250250

251251
```javascript
252252
{
@@ -398,8 +398,14 @@ cssparser example/test.css --console -i 4
398398
}
399399
```
400400

401-
##Change log
401+
## Change log
402402

403+
* 0.9.2 - March 17th, 2017
404+
* Now supports beautify delimiter option for simple & deep type.
405+
* Showing version will be run lower-case 'v' instead 'V'.
406+
* Fixed missing keyframe name and added type & level descriptions for simple type.
407+
* Fixed EOF error case.
408+
* Added '-b' option for beautify delimiters.
403409
* 0.9.1 - March 8th, 2017
404410
* Added 'rule' type on the css style node when simple mode.
405411
* 0.9.0 - March 5th, 2017

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"validation",
1414
"transform"
1515
],
16-
"version": "0.9.1",
16+
"version": "0.9.2",
1717
"preferGlobal": true,
1818
"repository": {
1919
"type": "git",
@@ -36,7 +36,7 @@
3636
},
3737
"devDependencies": {
3838
"babel-cli": "latest",
39-
"babel-plugin-transform-class-properties": "^6.23.0",
39+
"babel-plugin-transform-class-properties": "latest",
4040
"babel-preset-env": "latest",
4141
"gulp": "^3.9.1",
4242
"gulp-file-include": "^1.0.0",

0 commit comments

Comments
 (0)