sass-vars-extractor
v1.2.0-alpha
Published
A secure and performant utility to extract sass variables (and use their values from JavaScript).
Downloads
4
Readme
sass-vars-extractor
👾 A secure and performant utility to extract sass variables (and use their values from JavaScript).
Usage example
Extract all the haiticss variables 🍍
'use strict'
const SassVarsExtractor = require('sass-vars-extractor')
SassVarsExtractor.extract('./node_modules/@haiticss/haiticss/src/haiticss.scss')
.then((parsedVars) => {
console.log(parsedVars)
}).catch((sassError) => {
console.log(sassError)
})