{
  "_id": "csstree",
  "maintainers": [
    {
      "name": "codenothing",
      "email": "corey@codenothing.com"
    }
  ],
  "dist-tags": {
    "latest": "0.0.3"
  },
  "versions": {
    "0.0.1": {
      "name": "csstree",
      "description": "CSS to javascript object parser",
      "repository": {
        "type": "git",
        "url": "https://github.com/codenothing/CSSTree/"
      },
      "keywords": [
        "css",
        "parser",
        "tool"
      ],
      "author": {
        "name": "Corey Hart",
        "email": "corey@codenothing.com",
        "url": "http://www.codenothing.com"
      },
      "homepage": "http://codenothing.github.com/CSSTree/",
      "version": "0.0.1",
      "main": "./index.js",
      "engines": {
        "node": ">=0.8"
      },
      "dependencies": {},
      "devDependencies": {
        "nlint": "0.0.3",
        "munit": "0.0.2",
        "async": "0.2.6"
      },
      "readme": "# CSSTree\n\nCSS parsing into javascript object.\n\n\n### Installation\n\n```bash\n$ npm install csstree\n```\n\nCSSTree may also be run in a browser enviornment.\n\n```html\n<script type='text/javascript' src='CSSTree.js'></script>\n```\n\n\n### Usage\n\n```js\nvar instance = new CSSTree( css );\n\n// CSS Tree\nconsole.log( instance.branches );\n```\n\n\n### Example\n\n```js\nvar instance = new CSSTree( \"html body { background: red; margin: 10px 5px; }\" );\n\nconsole.log( instance.branches );\n```\n\nWill give an object format of the following:\n\n```js\n{\n\tselector: 'html body',\n\tparts: [\n\t\t'html',\n\t\t'body'\n\t],\n\trules: [\n\t\t{\n\t\t\tproperty: 'background',\n\t\t\tvalue: 'red',\n\t\t\tparts: [\n\t\t\t\t'red'\n\t\t\t]\n\t\t},\n\t\t{\n\t\t\tproperty: 'margin',\n\t\t\tvalue: '10px 5px',\n\t\t\tparts: [\n\t\t\t\t'10px',\n\t\t\t\t'5px'\n\t\t\t]\n\t\t}\n\t]\n}\n```\n\n\n\n### Position Objects\n\nEvery selector, rule, atrule and comment includes a 'Position' object which contains useful\ninformation about that fragments section of the stylesheet. Comes in the following form:\n\n```js\n{\n\tproperty: 'background',\n\tvalue: 'red',\n\tparts: [\n\t\t'red'\n\t],\n\tposition: {\n\t\trange: {\n\t\t\tstart: 40,\n\t\t\tend: 60,\n\t\t\tlength: 20\n\t\t},\n\t\tstart: {\n\t\t\tline: 2,\n\t\t\tcharacter: 2\n\t\t},\n\t\tend: {\n\t\t\tline: 2,\n\t\t\tcharacter: 22\n\t\t},\n\t\tchunks: [\n\t\t\t{\n\t\t\t\tstart: 40,\n\t\t\t\tend: 60,\n\t\t\t\tlength: 20\n\t\t\t}\n\t\t]\n\t}\n}\n```\n\n* **range**: Contains the start and end positions of the fragment within the stylesheet\n* **start**: Contains the starting line/character info of the fragment based on line breaks (\\r\\n|\\r|\\n)\n* **end**: Contains the ending line/character info of the fragment based on line breaks (\\r\\n|\\r|\\n)\n* **chunks**: When a comment exists between the start & end positions, chunks represents only the sections that belong to this position.\n\n\n### License\n\n```\nThe MIT License\n\nCopyright (c) 2013 Corey Hart\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n```\n",
      "readmeFilename": "README.md",
      "_id": "csstree@0.0.1",
      "dist": {
        "shasum": "26a483f3e2326e4460b42da2cbf3633291733765",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/csstree/-/csstree-0.0.1.tgz",
        "integrity": "sha512-qYhLYkX21BNptKsdizb9fpLwKEZL3yiE1q2OfH/Aw+HD5M7egmYPAEaGcBKJ1zxoG3RcDDNGSzdTxB1anu3CBw==",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEYCIQDkvVcmKe9nOI/xcaDXG7H3JdLPfhO9bw59sVd8H59eBgIhALp8i4GvlIw/QHUQ9hfRMBi31rnfP24vPQNDT57Q89Je"
          }
        ]
      },
      "_from": ".",
      "_npmVersion": "1.2.10",
      "_npmUser": {
        "name": "codenothing",
        "email": "corey@codenothing.com"
      },
      "maintainers": [
        {
          "name": "codenothing",
          "email": "corey@codenothing.com"
        }
      ]
    },
    "0.0.2": {
      "name": "csstree",
      "description": "CSS to javascript object parser",
      "repository": {
        "type": "git",
        "url": "https://github.com/codenothing/CSSTree/"
      },
      "keywords": [
        "css",
        "parser",
        "tool"
      ],
      "author": {
        "name": "Corey Hart",
        "email": "corey@codenothing.com",
        "url": "http://www.codenothing.com"
      },
      "homepage": "http://codenothing.github.com/CSSTree/",
      "version": "0.0.2",
      "main": "./index.js",
      "engines": {
        "node": ">=0.8"
      },
      "scripts": {
        "test": "make test"
      },
      "dependencies": {},
      "devDependencies": {
        "nlint": "0.0.4",
        "munit": "0.0.5",
        "async": "0.2.9"
      },
      "readme": "# CSSTree\n\nCSS parsing into javascript object.\n\n[![Build Status](https://travis-ci.org/codenothing/CSSTree.png?branch=master)](https://travis-ci.org/codenothing/CSSTree)  \n\n### Installation\n\n```bash\n$ npm install csstree\n```\n\nCSSTree may also be run in a browser enviornment.\n\n```html\n<script type='text/javascript' src='CSSTree.js'></script>\n```\n\n\n### Usage\n\n```js\nvar instance = new CSSTree( css );\n\n// CSS Tree\nconsole.log( instance.branches );\n```\n\n\n### Example\n\n```js\nvar instance = new CSSTree( \"html body { background: red; margin: 10px 5px; }\" );\n\nconsole.log( instance.branches );\n```\n\nWill give an object format of the following:\n\n```js\n{\n\tselector: 'html body',\n\tparts: [\n\t\t'html',\n\t\t'body'\n\t],\n\trules: [\n\t\t{\n\t\t\tproperty: 'background',\n\t\t\tvalue: 'red',\n\t\t\tparts: [\n\t\t\t\t'red'\n\t\t\t]\n\t\t},\n\t\t{\n\t\t\tproperty: 'margin',\n\t\t\tvalue: '10px 5px',\n\t\t\tparts: [\n\t\t\t\t'10px',\n\t\t\t\t'5px'\n\t\t\t]\n\t\t}\n\t]\n}\n```\n\n\n\n### Position Objects\n\nEvery selector, rule, atrule and comment includes a 'Position' object which contains useful\ninformation about that fragments section of the stylesheet. Comes in the following form:\n\n```js\n{\n\tproperty: 'background',\n\tvalue: 'red',\n\tparts: [\n\t\t'red'\n\t],\n\tposition: {\n\t\trange: {\n\t\t\tstart: 40,\n\t\t\tend: 60,\n\t\t\tlength: 20\n\t\t},\n\t\tstart: {\n\t\t\tline: 2,\n\t\t\tcharacter: 2\n\t\t},\n\t\tend: {\n\t\t\tline: 2,\n\t\t\tcharacter: 22\n\t\t},\n\t\tchunks: [\n\t\t\t{\n\t\t\t\tstart: 40,\n\t\t\t\tend: 60,\n\t\t\t\tlength: 20\n\t\t\t}\n\t\t]\n\t}\n}\n```\n\n* **range**: Contains the start and end positions of the fragment within the stylesheet\n* **start**: Contains the starting line/character info of the fragment based on line breaks (\\r\\n|\\r|\\n)\n* **end**: Contains the ending line/character info of the fragment based on line breaks (\\r\\n|\\r|\\n)\n* **chunks**: When a comment exists between the start & end positions, chunks represents only the sections that belong to this position.\n\n\n### License\n\n```\nThe MIT License\n\nCopyright (c) 2013 Corey Hart\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n```\n",
      "readmeFilename": "README.md",
      "_id": "csstree@0.0.2",
      "dist": {
        "shasum": "cc8b13a7d6919896d3708482eaebd8638f60e753",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/csstree/-/csstree-0.0.2.tgz",
        "integrity": "sha512-QZ9ytctQiePkKBoB3LtPMvV+EacV6SQzOKo6ysRIp78bHORzY+COc5tXbLSFet4GyvNcfuJ4aN/z35hcsMG+Jg==",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIQC9cScv/yNz9FF3tt5Rsa9/RjzuKm7vb+vzhexvu3ZMvwIgQ4RJN1wO8tePtAaTQhahJI+0zRppTVSj9eKYOuZ81tU="
          }
        ]
      },
      "_from": ".",
      "_npmVersion": "1.2.10",
      "_npmUser": {
        "name": "codenothing",
        "email": "corey@codenothing.com"
      },
      "maintainers": [
        {
          "name": "codenothing",
          "email": "corey@codenothing.com"
        }
      ]
    },
    "0.0.3": {
      "name": "csstree",
      "version": "0.0.3",
      "main": "./index.js",
      "description": "CSS AST Builder",
      "keywords": [
        "css",
        "parser",
        "tool",
        "ast"
      ],
      "author": {
        "name": "Corey Hart",
        "email": "corey@codenothing.com",
        "url": "http://www.codenothing.com"
      },
      "homepage": "http://codenothing.github.com/CSSTree/",
      "license": "MIT",
      "repository": {
        "type": "git",
        "url": "https://github.com/codenothing/CSSTree.git"
      },
      "bugs": {
        "url": "https://github.com/codenothing/CSSTree/issues",
        "email": "corey@codenothing.com"
      },
      "engines": {
        "node": ">=0.8"
      },
      "scripts": {
        "test": "make test",
        "postinstall": "node build/build.js"
      },
      "dependencies": {
        "string-iterator": "0.0.1"
      },
      "devDependencies": {
        "nlint": "0.0.6",
        "munit": "0.0.7",
        "async": "0.2.9"
      },
      "readme": "# CSSTree\n\nCSS AST Builder\n\n[![Build Status](https://travis-ci.org/codenothing/CSSTree.png?branch=master)](https://travis-ci.org/codenothing/CSSTree)  \n\n### Installation\n\n```bash\n$ npm install csstree\n```\n\nCSSTree may also be run in a browser enviornment.\n\n```html\n<script type='text/javascript' src='CSSTree.js'></script>\n```\n\n\n### Usage\n\n```js\nvar instance = new CSSTree( css );\n\n// CSS Tree\nconsole.log( instance.branches );\n```\n\n\n### Example\n\n```js\nvar instance = new CSSTree( \"html body { background: red; margin: 10px 5px; }\" );\n\nconsole.log( instance.branches );\n```\n\nWill give an object format of the following:\n\n```js\n{\n\tselector: 'html body',\n\tparts: [\n\t\t'html',\n\t\t'body'\n\t],\n\trules: [\n\t\t{\n\t\t\tproperty: 'background',\n\t\t\tvalue: 'red',\n\t\t\tparts: [\n\t\t\t\t'red'\n\t\t\t]\n\t\t},\n\t\t{\n\t\t\tproperty: 'margin',\n\t\t\tvalue: '10px 5px',\n\t\t\tparts: [\n\t\t\t\t'10px',\n\t\t\t\t'5px'\n\t\t\t]\n\t\t}\n\t]\n}\n```\n\n\n\n### Position Objects\n\nEvery selector, rule, atrule and comment includes a 'Position' object which contains useful\ninformation about that fragments section of the stylesheet. Comes in the following form:\n\n```js\n{\n\tproperty: 'background',\n\tvalue: 'red',\n\tparts: [\n\t\t'red'\n\t],\n\tposition: {\n\t\trange: {\n\t\t\tstart: 40,\n\t\t\tend: 60,\n\t\t\tlength: 20\n\t\t},\n\t\tstart: {\n\t\t\tline: 2,\n\t\t\tcharacter: 2\n\t\t},\n\t\tend: {\n\t\t\tline: 2,\n\t\t\tcharacter: 22\n\t\t},\n\t\tchunks: [\n\t\t\t{\n\t\t\t\tstart: 40,\n\t\t\t\tend: 60,\n\t\t\t\tlength: 20\n\t\t\t}\n\t\t]\n\t}\n}\n```\n\n* **range**: Contains the start and end indexes of the fragment within the stylesheet\n* **start**: Contains the starting line/character info of the fragment based on line breaks (\\r\\n|\\r|\\n)\n* **end**: Contains the ending line/character info of the fragment based on line breaks (\\r\\n|\\r|\\n)\n* **chunks**: When a comment exists between the start & end indexes, chunks represents only the sections that belong to this position.\n\n\n### License\n\n```\nThe MIT License\n\nCopyright (c) 2013 Corey Hart\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n```\n",
      "readmeFilename": "README.md",
      "_id": "csstree@0.0.3",
      "dist": {
        "shasum": "97b680c0ccfd4d0ffcf80c061279694ba9c3c8cb",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/csstree/-/csstree-0.0.3.tgz",
        "integrity": "sha512-xs+bw0WIYtl88NrtDMS8QNTSCxYXmIpuuR9Fq/o/8T+CMm0ONxQIUS7liXcWoqZlCBXiNf4YOXHcXvAXyYVY7g==",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIQCfYs+9up2wQ4Y6539HmxYiKBbDZfqRkw0xxsYZMTmN+QIgKh+moj27UMPlNnaacwUvdfC9t7KTEfW+G35+ZJJNUM4="
          }
        ]
      },
      "_from": ".",
      "_npmVersion": "1.3.6",
      "_npmUser": {
        "name": "codenothing",
        "email": "corey@codenothing.com"
      },
      "maintainers": [
        {
          "name": "codenothing",
          "email": "corey@codenothing.com"
        }
      ]
    }
  },
  "author": {
    "name": "Corey Hart",
    "email": "corey@codenothing.com",
    "url": "http://www.codenothing.com"
  },
  "_rev": "9-dffa5e79dcb96fb9873c8620c8656673",
  "name": "csstree",
  "description": "CSS AST Builder",
  "readme": "# CSSTree\n\nCSS parsing into javascript object.\n\n\n### Installation\n\n```bash\n$ npm install csstree\n```\n\nCSSTree may also be run in a browser enviornment.\n\n```html\n<script type='text/javascript' src='CSSTree.js'></script>\n```\n\n\n### Usage\n\n```js\nvar instance = new CSSTree( css );\n\n// CSS Tree\nconsole.log( instance.branches );\n```\n\n\n### Example\n\n```js\nvar instance = new CSSTree( \"html body { background: red; margin: 10px 5px; }\" );\n\nconsole.log( instance.branches );\n```\n\nWill give an object format of the following:\n\n```js\n{\n\tselector: 'html body',\n\tparts: [\n\t\t'html',\n\t\t'body'\n\t],\n\trules: [\n\t\t{\n\t\t\tproperty: 'background',\n\t\t\tvalue: 'red',\n\t\t\tparts: [\n\t\t\t\t'red'\n\t\t\t]\n\t\t},\n\t\t{\n\t\t\tproperty: 'margin',\n\t\t\tvalue: '10px 5px',\n\t\t\tparts: [\n\t\t\t\t'10px',\n\t\t\t\t'5px'\n\t\t\t]\n\t\t}\n\t]\n}\n```\n\n\n\n### Position Objects\n\nEvery selector, rule, atrule and comment includes a 'Position' object which contains useful\ninformation about that fragments section of the stylesheet. Comes in the following form:\n\n```js\n{\n\tproperty: 'background',\n\tvalue: 'red',\n\tparts: [\n\t\t'red'\n\t],\n\tposition: {\n\t\trange: {\n\t\t\tstart: 40,\n\t\t\tend: 60,\n\t\t\tlength: 20\n\t\t},\n\t\tstart: {\n\t\t\tline: 2,\n\t\t\tcharacter: 2\n\t\t},\n\t\tend: {\n\t\t\tline: 2,\n\t\t\tcharacter: 22\n\t\t},\n\t\tchunks: [\n\t\t\t{\n\t\t\t\tstart: 40,\n\t\t\t\tend: 60,\n\t\t\t\tlength: 20\n\t\t\t}\n\t\t]\n\t}\n}\n```\n\n* **range**: Contains the start and end positions of the fragment within the stylesheet\n* **start**: Contains the starting line/character info of the fragment based on line breaks (\\r\\n|\\r|\\n)\n* **end**: Contains the ending line/character info of the fragment based on line breaks (\\r\\n|\\r|\\n)\n* **chunks**: When a comment exists between the start & end positions, chunks represents only the sections that belong to this position.\n\n\n### License\n\n```\nThe MIT License\n\nCopyright (c) 2013 Corey Hart\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n```\n",
  "time": {
    "modified": "2026-05-25T10:58:25.871Z",
    "created": "2013-03-17T20:41:47.769Z",
    "0.0.1": "2013-03-17T20:41:48.639Z",
    "0.0.2": "2013-07-05T22:24:42.617Z",
    "0.0.3": "2013-10-24T05:33:26.455Z"
  },
  "repository": {
    "type": "git",
    "url": "https://github.com/codenothing/CSSTree.git"
  }
}