{"_id":"@civictheme/scss-variables-extractor","_rev":"4-bd009b336d4222a3e9e05c4b4d645051","name":"@civictheme/scss-variables-extractor","dist-tags":{"latest":"0.2.1"},"versions":{"0.2.1":{"name":"@civictheme/scss-variables-extractor","version":"0.2.1","keywords":["SCSS","variabels"],"author":{"url":"original author","name":"Alex Skrypnyk","email":"alex@drevops.com"},"license":"GPL-2.0-or-later","_id":"@civictheme/scss-variables-extractor@0.2.1","maintainers":[{"name":"steveworley","email":"sj.worley88@gmail.com"},{"name":"richardgaunt","email":"richard.gaunt@protonmail.com"},{"name":"salsabot","email":"deployer@salsa.digital"}],"contributors":[{"name":"Alex Skrypnyk","email":"alex@drevops.com"},{"name":"Richard Gaunt","email":"richard.gaunt@salsa.digital"}],"homepage":"https://github.com/civictheme/scss-variables-extractor#readme","bugs":{"url":"https://github.com/civictheme/scss-variables-extractor/issues"},"dist":{"shasum":"8c4d28aebc5295ab307b6606b24348fca4f43e37","tarball":"https://registry.npmjs.org/@civictheme/scss-variables-extractor/-/scss-variables-extractor-0.2.1.tgz","fileCount":21,"integrity":"sha512-74Is2fylUlWm36QwbnczFrQ/sX1Apyj0ayiKbG4TxHenYADuYdw3mLE+3J2qy91zLgUOmEcZC2xtNr62g3DEAg==","signatures":[{"sig":"MEUCIQDl6OEUGsZiilQyp9r8WZifNmhnZqbBRubAqlK5FZM9wgIgIfPh0yi4s+0ziCoMlaMjicvfEDRtH0q4eZYlw/4RuyE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":55380},"main":"index.js","gitHead":"de817bc0432b70e2a5d4f63166d82ceacafa4645","scripts":{"lint":"eslint index.js","test":"qunit","lint:fix":"eslint --fix index.js"},"_npmUser":{"name":"richardgaunt","email":"richard.gaunt@protonmail.com"},"repository":{"url":"git+https://github.com/civictheme/scss-variables-extractor.git","type":"git"},"_npmVersion":"11.4.2","description":"Extract SCSS variables to make them available in scripts using vanilla JS.","directories":{"test":"tests"},"_nodeVersion":"22.14.0","_hasShrinkwrap":false,"devDependencies":{"qunit":"^2","eslint":"^8","eslint-config-airbnb":"^19"},"_npmOperationalInternal":{"tmp":"tmp/scss-variables-extractor_0.2.1_1755497950637_0.7080720195095436","host":"s3://npm-registry-packages-npm-production"}}},"time":{"created":"2025-08-18T06:19:10.528Z","modified":"2025-09-10T23:15:25.168Z","0.2.1":"2025-08-18T06:19:10.803Z"},"bugs":{"url":"https://github.com/civictheme/scss-variables-extractor/issues"},"author":{"url":"original author","name":"Alex Skrypnyk","email":"alex@drevops.com"},"license":"GPL-2.0-or-later","homepage":"https://github.com/civictheme/scss-variables-extractor#readme","keywords":["SCSS","variabels"],"repository":{"url":"git+https://github.com/civictheme/scss-variables-extractor.git","type":"git"},"description":"Extract SCSS variables to make them available in scripts using vanilla JS.","contributors":[{"name":"Alex Skrypnyk","email":"alex@drevops.com"},{"name":"Richard Gaunt","email":"richard.gaunt@salsa.digital"}],"maintainers":[{"email":"richard.gaunt@protonmail.com","name":"richardgaunt"},{"email":"deployer@salsa.digital","name":"salsabot"},{"email":"kurt.foster@salsa.digital","name":"kurt.foster"},{"email":"alan.cole@salsa.digital","name":"alan-cole"}],"readme":"<p align=\"center\">\n  <a href=\"\" rel=\"noopener\">\n  <img width=200px height=200px src=\"https://placehold.jp/000000/ffffff/200x200.png?text=SCSS+variables+extractor&css=%7B%22border-radius%22%3A%22%20100px%22%7D\" alt=\"Yourproject logo\"></a>\n</p>\n\n<h1 align=\"center\">SCSS variables extractor</h1>\n\n<div align=\"center\">\n\n[![GitHub Issues](https://img.shields.io/github/issues/civictheme/scss-variables-extractor.svg)](https://github.com/civictheme/scss-variables-extractor/issues)\n[![GitHub Pull Requests](https://img.shields.io/github/issues-pr/civictheme/scss-variables-extractor.svg)](https://github.com/civictheme/scss-variables-extractor/pulls)\n[![Test](https://github.com/civictheme/scss-variables-extractor/actions/workflows/test-nodejs.yml/badge.svg)](https://github.com/civictheme/scss-variables-extractor/actions/workflows/test-nodejs.yml)\n![GitHub release (latest by date)](https://img.shields.io/github/v/release/civictheme/scss-variables-extractor)\n![LICENSE](https://img.shields.io/github/license/civictheme/scss-variables-extractor)\n![Renovate](https://img.shields.io/badge/renovate-enabled-green?logo=renovatebot)\n\n</div>\n\n---\n\n<p align=\"center\"> Extract SCSS variables to make them available in scripts using vanilla JS.\n    <br>\n</p>\n\n\n## Features\n\nExtract SCSS variables to make them available in scripts using vanilla JS.\n\n## Installation\n\n    npm install @civictheme/scss-variables-extractor\n\n## Usage\n\n```javascript\nconst extractor = require('./scss-variables-extractor');\n\n// SCSS content.\nconst content = `\n    $theme-colors-brands-default: (\n      'light': (\n        'brand1': #123456,\n        'brand2': #234567,\n        'brand3': #345678,\n      ),\n      'dark': (\n        'brand1': #987654,\n        'brand2': #876543,\n        'brand3': #765432,\n      )\n    );\n`;\n\nconst vars = extractor.extract(content);\n\nconsole.log(vars);\n\n// Output:\n// {\n//   'theme-colors-brands-default': {\n//     'light': {\n//       'brand1': '#123456',\n//       'brand2': '#234567',\n//       'brand3': '#345678',\n//     },\n//     'dark': {\n//       'brand1': '#987654',\n//       'brand2': '#876543',\n//       'brand3': '#765432',\n//     }\n//   }\n// }\n\n```\n\n## Maintenance\n    npm install\n    npm lint\n    npm test\n\n---\nRepository created using https://getscaffold.dev/ project scaffold template    \n","readmeFilename":"README.md"}