1.2.0-alpha ā€¢ Published 7 years ago

sass-vars-extractor v1.2.0-alpha

Weekly downloads
9
License
MIT
Repository
github
Last release
7 years ago

sass-vars-extractor

JavaScript Style Guide npm version Build Status

šŸ‘¾ 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)
  })