Skip to content

Commit 1d51861

Browse files
committed
prepare for v2
1 parent aff9c5f commit 1d51861

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

History.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
2.0.0 /
1+
2+
2.0.0 / 2014-01-24
23
==================
34

45
* rename source to filename

Readme.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# css-parse [![Build Status](https://travis-ci.org/visionmedia/css-parse.png)](https://travis-ci.org/visionmedia/css-parse)
1+
# css-parse [![Build Status](https://travis-ci.org/reworkcss/css-parse.png)](https://travis-ci.org/reworkcss/css-parse)
22

33
JavaScript CSS parser for nodejs and the browser.
44

@@ -16,8 +16,8 @@ var css = "body { \n background-color: #fff;\n }";
1616

1717
var output_obj = parse(css);
1818

19-
// Position and Filename parameters
20-
var output_obj_pos = parse(css, { position: true, filename: 'file.css' });
19+
// Filename parameter for source mapping
20+
var output_obj_pos = parse(css, { filename: 'file.css' });
2121

2222
// Print parsed object as CSS string
2323
console.log(JSON.stringify(output_obj, null, 2));
@@ -30,7 +30,7 @@ console.log(JSON.stringify(output_obj, null, 2));
3030

3131
`options`:
3232

33-
- `filename` - recommended for debugging
33+
- `filename` - recommended for debugging.
3434
- `position` - `true` by default.
3535

3636
### Errors
@@ -42,7 +42,7 @@ Errors will have `err.position` where `position` is:
4242
- `filename` - filename if passed to options
4343
- `source` - source CSS string
4444

45-
If you create any errors in plugins such as in [rework](https://github.com/visionmedia/rework), you __must__ set the `position` as well for consistency.
45+
If you create any errors in plugins such as in [rework](https://github.com/reworkcss/rework), you __must__ set the `position` as well for consistency.
4646

4747
## Example
4848

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "css-parse",
3-
"version": "1.7.0",
3+
"version": "2.0.0",
44
"description": "CSS parser",
55
"keywords": [
66
"css",
@@ -15,10 +15,9 @@
1515
"matcha": "~0.4.0",
1616
"bytes": "~0.2.1"
1717
},
18-
"main": "index",
1918
"repository": {
2019
"type": "git",
21-
"url": "https://github.com/visionmedia/css-parse.git"
20+
"url": "https://github.com/reworkcss/css-parse.git"
2221
},
2322
"scripts": {
2423
"test": "make test"

0 commit comments

Comments
 (0)