icomoon-style-convert

0.1.4 • Public • Published

icomoon-style-convert

A Node.js Module to Convert icomoon icon font css styles to LESS file

Eventually will add Stylus and SCSS support

wercker status Coverage Status

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));

/icomoon-style-convert/

    Package Sidebar

    Install

    npm i icomoon-style-convert

    Weekly Downloads

    1

    Version

    0.1.4

    License

    none

    Last publish

    Collaborators

    • stevenweathers