-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
44 lines (44 loc) · 3.08 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{
"name": "css-parse",
"version": "1.6.0",
"description": "CSS parser",
"keywords": [
"css",
"parser",
"stylesheet"
],
"author": {
"name": "TJ Holowaychuk",
"email": "tj@vision-media.ca"
},
"license": "MIT",
"devDependencies": {
"mocha": "*",
"should": "*",
"matcha": "~0.4.0",
"bytes": "~0.2.1"
},
"main": "index",
"repository": {
"type": "git",
"url": "https://github.com/visionmedia/css-parse.git"
},
"scripts": {
"test": "make test"
},
"files": [
"index.js"
],
"readme": "\n# css-parse\n\n JavaScript CSS parser for nodejs and the browser.\n\n## Example\n\ncss:\n\n```css\nbody {\n background: #eee;\n color: #888;\n}\n```\n\nparse tree:\n\n```json\n{\n \"type\": \"stylesheet\",\n \"stylesheet\": {\n \"rules\": [\n {\n \"type\": \"rule\",\n \"selectors\": [\n \"body\"\n ],\n \"declarations\": [\n {\n \"type\": \"declaration\",\n \"property\": \"background\",\n \"value\": \"#eee\"\n },\n {\n \"type\": \"declaration\",\n \"property\": \"color\",\n \"value\": \"#888\"\n }\n ]\n }\n ]\n }\n}\n```\n\nparse tree with `.position` enabled:\n\n```json\n{\n \"type\": \"stylesheet\",\n \"stylesheet\": {\n \"rules\": [\n {\n \"type\": \"rule\",\n \"selectors\": [\n \"body\"\n ],\n \"declarations\": [\n {\n \"type\": \"declaration\",\n \"property\": \"background\",\n \"value\": \"#eee\",\n \"position\": {\n \"start\": {\n \"line\": 3,\n \"column\": 3\n },\n \"end\": {\n \"line\": 3,\n \"column\": 19\n }\n }\n },\n {\n \"type\": \"declaration\",\n \"property\": \"color\",\n \"value\": \"#888\",\n \"position\": {\n \"start\": {\n \"line\": 4,\n \"column\": 3\n },\n \"end\": {\n \"line\": 4,\n \"column\": 14\n }\n }\n }\n ],\n \"position\": {\n \"start\": {\n \"line\": 2,\n \"column\": 1\n },\n \"end\": {\n \"line\": 5,\n \"column\": 2\n }\n }\n }\n ]\n }\n}\n```\n\nIf you also pass in `source: 'path/to/original.css'`, that will be set\non `node.position.source`.\n\n## Performance\n\n Parsed 15,000 lines of CSS (2mb) in 40ms on my macbook air.\n\n## License\n\n MIT\n",
"readmeFilename": "Readme.md",
"bugs": {
"url": "https://github.com/visionmedia/css-parse/issues"
},
"homepage": "https://github.com/visionmedia/css-parse",
"_id": "css-parse@1.6.0",
"dist": {
"shasum": "b8fc2416f8ed859c5fbf791c86b9ebc0225898ce"
},
"_from": "css-parse@~> 1.6.0",
"_resolved": "http://registry.npmjs.org/css-parse/-/css-parse-1.6.0.tgz"
}