{"_id":"scss-parser","_rev":"4251562","name":"scss-parser","description":"A library to parse/stringify SCSS","dist-tags":{"latest":"1.0.6"},"maintainers":[{"name":"salesforce-ux","email":""}],"time":{"modified":"2026-03-31T23:45:43.000Z","created":"2016-04-25T13:58:39.646Z","1.0.6":"2022-12-08T23:55:54.156Z","1.0.5":"2021-07-09T18:36:24.247Z","1.0.4":"2020-02-04T04:40:44.629Z","1.0.3":"2019-02-01T20:37:29.274Z","1.0.1":"2019-01-16T17:36:28.139Z","1.0.0":"2016-04-25T13:58:39.646Z"},"users":{},"repository":{"type":"git","url":"git+https://github.com/salesforce-ux/scss-parser.git"},"versions":{"1.0.6":{"name":"scss-parser","version":"1.0.6","description":"A library to parse/stringify SCSS","main":"lib/index.js","license":"SEE LICENSE IN README","repository":{"type":"git","url":"git+https://github.com/salesforce-ux/scss-parser.git"},"bugs":{"url":"https://github.com/salesforce-ux/scss-parser/issues"},"engines":{"node":">=6.0.0"},"scripts":{"test":"jest","lint":"standard"},"dependencies":{"invariant":"2.2.4","lodash":"4.17.21"},"standard":{"ignore":["node_modules/**/*"]},"devDependencies":{"jest":"^24.9.0","standard":"^14.3.1"},"gitHead":"9ac7b7357ef5d708009c4ffb954023c8fe68fb3a","homepage":"https://github.com/salesforce-ux/scss-parser#readme","_id":"scss-parser@1.0.6","_nodeVersion":"14.18.3","_npmVersion":"8.11.0","dist":{"shasum":"cd1ba01ee32db19322c8df2badd26da8f166b1c1","size":25489,"noattachment":false,"key":"/scss-parser/-/scss-parser-1.0.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/scss-parser/download/scss-parser-1.0.6.tgz"},"_npmUser":{"name":"salesforce-ux","email":"dse-infra@salesforce.com"},"directories":{},"maintainers":[{"name":"salesforce-ux","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/scss-parser_1.0.6_1670543753954_0.7150079229114563"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-12-08T23:56:06.224Z","publish_time":1670543754156,"_cnpm_publish_time":1670543754156},"1.0.5":{"name":"scss-parser","version":"1.0.5","description":"A library to parse/stringify SCSS","main":"lib/index.js","license":"SEE LICENSE IN README","repository":{"type":"git","url":"git+https://github.com/salesforce-ux/scss-parser.git"},"bugs":{"url":"https://github.com/salesforce-ux/scss-parser/issues"},"engines":{"node":">=6.0.0"},"scripts":{"test":"jest","lint":"standard"},"dependencies":{"invariant":"2.2.4"},"standard":{"ignore":["node_modules/**/*"]},"devDependencies":{"jest":"^24.9.0","standard":"^14.3.1"},"gitHead":"de6dc5f872d999580aeb2ba77d738e52095584f0","homepage":"https://github.com/salesforce-ux/scss-parser#readme","_id":"scss-parser@1.0.5","_nodeVersion":"14.17.1","_npmVersion":"7.19.0","dist":{"shasum":"2297d688a4c300e94552f72c41fd7de092d19c4b","size":25429,"noattachment":false,"key":"/scss-parser/-/scss-parser-1.0.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/scss-parser/download/scss-parser-1.0.5.tgz"},"_npmUser":{"name":"salesforce-ux","email":"salesforce-ux-npm@salesforce.com"},"directories":{},"maintainers":[{"name":"salesforce-ux","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/scss-parser_1.0.5_1625855784114_0.14324881010581625"},"_hasShrinkwrap":false,"publish_time":1625855784247,"_cnpm_publish_time":1625855784247},"1.0.4":{"name":"scss-parser","version":"1.0.4","description":"A library to parse/stringify SCSS","main":"lib/index.js","license":"SEE LICENSE IN README","repository":{"type":"git","url":"git+https://github.com/salesforce-ux/scss-parser.git"},"bugs":{"url":"https://github.com/salesforce-ux/scss-parser/issues"},"engines":{"node":">=6.0.0"},"scripts":{"test":"jest","lint":"standard"},"dependencies":{"invariant":"2.2.4","lodash":"^4.17.4"},"devDependencies":{"jest":"24.9.0","standard":"14.3.1"},"standard":{"ignore":["node_modules/**/*"]},"gitHead":"39cb49ea0748c7ad31139d2365e7e5711e29e937","homepage":"https://github.com/salesforce-ux/scss-parser#readme","_id":"scss-parser@1.0.4","_nodeVersion":"10.18.1","_npmVersion":"6.13.4","dist":{"shasum":"61cdeb28701ffcb497954b9b05729c6d38eb8b9f","size":27196,"noattachment":false,"key":"/scss-parser/-/scss-parser-1.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/scss-parser/download/scss-parser-1.0.4.tgz"},"maintainers":[{"name":"salesforce-ux","email":""}],"_npmUser":{"name":"salesforce-ux","email":"salesforce-ux-npm@salesforce.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/scss-parser_1.0.4_1580791244492_0.5220280840080442"},"_hasShrinkwrap":false,"publish_time":1580791244629,"_cnpm_publish_time":1580791244629},"1.0.3":{"name":"scss-parser","version":"1.0.3","description":"A library to parse/stringify SCSS","main":"lib/index.js","license":"SEE LICENSE IN README","repository":{"type":"git","url":"git+https://github.com/salesforce-ux/scss-parser.git"},"bugs":{"url":"https://github.com/salesforce-ux/scss-parser/issues"},"engines":{"node":">=6.0.0"},"scripts":{"test":"jest","lint":"standard"},"dependencies":{"invariant":"2.2.2","lodash":"^4.17.4"},"devDependencies":{"jest":"20.0.4","standard":"10.0.1"},"standard":{"ignore":["node_modules/**/*"]},"gitHead":"af49eb38fc060ef375e23d2af693f3401fe81b9c","homepage":"https://github.com/salesforce-ux/scss-parser#readme","_id":"scss-parser@1.0.3","_npmVersion":"6.4.1","_nodeVersion":"10.14.0","_npmUser":{"name":"salesforce-ux","email":"salesforce-ux-npm@salesforce.com"},"dist":{"shasum":"8e61ce8216e07506c52cf64afd8120e94d1fcd5c","size":27565,"noattachment":false,"key":"/scss-parser/-/scss-parser-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/scss-parser/download/scss-parser-1.0.3.tgz"},"maintainers":[{"name":"salesforce-ux","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/scss-parser_1.0.3_1549053449166_0.744314364678947"},"_hasShrinkwrap":false,"publish_time":1549053449274,"_cnpm_publish_time":1549053449274},"1.0.1":{"name":"scss-parser","version":"1.0.1","description":"A library to parse/stringify SCSS","main":"lib/index.js","license":"SEE LICENSE IN README","repository":{"type":"git","url":"git+https://github.com/salesforce-ux/scss-parser.git"},"bugs":{"url":"https://github.com/salesforce-ux/scss-parser/issues"},"engines":{"node":">=6.0.0"},"scripts":{"test":"jest","lint":"standard"},"dependencies":{"invariant":"2.2.2","lodash":"^4.17.4"},"devDependencies":{"jest":"20.0.4","standard":"10.0.1"},"standard":{"ignore":["node_modules/**/*"]},"gitHead":"f66c21a422eec415c8bee3f9ca9de9a2c2ad5573","homepage":"https://github.com/salesforce-ux/scss-parser#readme","_id":"scss-parser@1.0.1","_npmVersion":"6.4.1","_nodeVersion":"10.14.0","_npmUser":{"name":"salesforce-ux","email":"salesforce-ux-npm@salesforce.com"},"dist":{"shasum":"f7b3a4af54f6ca4d01fa07ff27de0fc9377034c0","size":27533,"noattachment":false,"key":"/scss-parser/-/scss-parser-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/scss-parser/download/scss-parser-1.0.1.tgz"},"maintainers":[{"name":"salesforce-ux","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/scss-parser_1.0.1_1547660188002_0.849019858913497"},"_hasShrinkwrap":false,"publish_time":1547660188139,"_cnpm_publish_time":1547660188139},"1.0.0":{"name":"scss-parser","version":"1.0.0","description":"A library to parse/stringify SCSS","main":"dist/index.js","engines":{"node":">=5.0.0"},"scripts":{"test":"npm run lint && mocha lib/**/*.js test/**/*.js --reporter min --recursive --harmony_destructuring --harmony_rest_parameters","lint":"standard","build":"babel lib --out-dir dist --presets es2015","prepublish":"npm run build"},"dependencies":{"invariant":"2.2.1","lodash":"4.11.1"},"devDependencies":{"babel-cli":"6.7.7","babel-preset-es2015":"6.6.0","chai":"3.5.0","mocha":"2.4.5","standard":"6.0.8"},"standard":{"ignore":["node_modules/**/*"]},"gitHead":"2b3fe6677659e212d5167b3393c206826102f914","_id":"scss-parser@1.0.0","_shasum":"1d50a98c9afc77dcf9308e851f5c0c5693487868","_from":".","_npmVersion":"3.7.3","_nodeVersion":"5.9.1","_npmUser":{"name":"salesforce-ux","email":"salesforce-ux-npm@salesforce.com"},"dist":{"shasum":"1d50a98c9afc77dcf9308e851f5c0c5693487868","size":19023,"noattachment":false,"key":"/scss-parser/-/scss-parser-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/scss-parser/download/scss-parser-1.0.0.tgz"},"maintainers":[{"name":"salesforce-ux","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/scss-parser-1.0.0.tgz_1461592716959_0.40508477250114083"},"directories":{},"publish_time":1461592719646,"_cnpm_publish_time":1461592719646,"_hasShrinkwrap":false}},"readme":"# SCSS Parser\n\n[![Build Status][travis-image]][travis-url]\n[![Dependabot Status](https://api.dependabot.com/badges/status?host=github&repo=salesforce-ux/scss-parser)](https://dependabot.com)\n[![NPM version][npm-image]][npm-url]\n\n## Getting Started\n\n```javascript\nlet { parse, stringify } = require('scss-parser')\n\n// Create an AST from a string of SCSS\nlet ast = parse('.hello { color: $red; }')\n// Modify the AST (see below for a better way to do this)\nast.value[0].value[0].value[0].value[0].value = 'world'\n// Convert the modified AST back to SCSS\nlet scss = stringify(ast) // .world { color: $red; }\n```\n\n## Traversal\n\nFor an easy way to traverse/modify the generated AST, check out [QueryAST](https://github.com/salesforce-ux/query-ast)\n\n```javascript\nlet { parse, stringify } = require('scss-parser')\nlet createQueryWrapper = require('query-ast')\n\n// Create an AST\nlet ast = parse('.hello { color: red; } .world { color: blue; }')\n// Create a function to traverse/modify the AST\nlet $ = createQueryWrapper(ast)\n// Make some modifications\n$('rule').eq(1).remove()\n// Convert the modified AST back to a string\nlet scss = stringify($().get(0))\n```\n\n## Running tests\n\nClone the repository, then:\n\n```bash\nnpm install\n# requires node >= 5.0.0\nnpm test\n```\n\n## License\n\nCopyright (c) 2016, salesforce.com, inc. All rights reserved.\n\nRedistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:\nRedistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.\nRedistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.\nNeither the name of salesforce.com, inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\n[npm-url]: https://npmjs.org/package/scss-parser\n[npm-image]: http://img.shields.io/npm/v/scss-parser.svg\n\n[travis-url]: https://travis-ci.org/salesforce-ux/scss-parser\n[travis-image]: https://travis-ci.org/salesforce-ux/scss-parser.svg?branch=master\n","_attachments":{},"homepage":"https://github.com/salesforce-ux/scss-parser#readme","bugs":{"url":"https://github.com/salesforce-ux/scss-parser/issues"},"license":"SEE LICENSE IN README"}