icomoon-style-convert
v0.1.4
Published
Convert Icomoon CSS to Less/Stylus
Downloads
4
Readme
icomoon-style-convert
A Node.js Module to Convert icomoon icon font css styles to LESS file
Eventually will add Stylus and SCSS support
Install
npm install --save-dev icomoon-style-convert
Example Usage
var icomoonconvert = require("icomoon-style-convert");
var fs = require('fs');
var css = fs.readFileSync("style.css","utf-8");
fs.writeFileSync('style.less', icomoonconvert.less(css));
Example Usage with Prefix Option
var icomoonconvert = require("icomoon-style-convert");
var fs = require('fs');
var css = fs.readFileSync("style.css","utf-8");
var options = {
classPrefix: "sw-"
};
fs.writeFileSync('style.less', icomoonconvert.less(css,options));