0.1.0 • Published 8 years ago

sass-browserslist v0.1.0

Weekly downloads
4
License
ISC
Repository
github
Last release
8 years ago

sass-browserslist

Use browserslist in your Libsass/node-sass modules.

Usage

sass-browserslist is a node-js module that delegates to the browserslist() function, and formats the results as expected by various sass libraries managing browsers support. To actually get the formatted browsers list in sass, use node-sass's function option, or use a custom importer such as node-sass-import-once.

var sass = require('node-sass'); var sassBrowserslist = require('sass-browserslist');

sass.render({ / ... /, functions: { 'sass-browserslist': sassBrowserslist.supportFor } });

support-for()

Returns the list of minimum browsers versions, as understood by sass's support-for module. Accepts the same parameters as the browserslist() function.

var sassBrowserslist = require('sass-support-for'); sassBrowserslist.supportFor();