@violacss/converter-sass-to-js

0.1.0 • Public • Published

@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'}

Package Sidebar

Install

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

Weekly Downloads

1

Version

0.1.0

License

MIT

Unpacked Size

4.85 kB

Total Files

5

Last publish

Collaborators

  • amirhosseinab