0.1.0 • Published 5 years ago

@violacss/converter-sass-to-js v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

@violacss/converter-sass-to-js

Travis npm Download coverage License

This is a helper to convert SASS data types to JavaScript data types

installation

$ yarn add @violacss/converter-sass-to-js

or

$ npm i @violacss/converter-sass-to-js --save

Usage

const sass = require('node-sass');

const toJs = require('@violacss/converter-sass-to-js');
const number = new sass.types.Number(42,'rem');
const result = toJs(number); // -> {value: 42, unit:'rem'}