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

Readme

Keywords

none

Package Sidebar

Install

npm i icomoon-style-convert

Weekly Downloads

2

Version

0.1.4

License

none

Last publish

Collaborators

  • stevenweathers