{
  "name": "css-parse",
  "version": "1.7.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": "# css-parse [![Build Status](https://travis-ci.org/visionmedia/css-parse.png)](https://travis-ci.org/visionmedia/css-parse)\n\n  JavaScript CSS parser for nodejs and the browser.\n\n## Installation\n\n  $ npm install css-parse\n\n## Usage\n\n````javascript\nvar parse = require('css-parse');\n\n// CSS input string\nvar css = \"body { \\n background-color: #fff;\\n }\";\n\nvar output_obj = parse(css);\n\n// Position and Source parameters\nvar output_obj_pos = parse(css, { position: true, source: 'file.css' });\n\n// Print parsed object as CSS string\nconsole.log(JSON.stringify(output_obj, null, 2));\n\n````\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## Related\n \n  [css-stringify](https://github.com/visionmedia/css-stringify \"CSS-Stringify\")  \n  [css-value](https://github.com/visionmedia/css-value \"CSS-Value\")  \n\n## License\n\n  MIT\n",
  "readmeFilename": "Readme.md",
  "bugs": {
    "url": "https://github.com/visionmedia/css-parse/issues"
  },
  "_id": "css-parse@1.7.0",
  "dist": {
    "shasum": "94c7f4fb8e4300348221198a5eb3eff604e6655a"
  },
  "_from": "css-parse@1.7.x",
  "_resolved": "https://registry.npmjs.org/css-parse/-/css-parse-1.7.0.tgz"
}
