0.1.3 • Published 9 years ago

xresources-to-scss v0.1.3

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

.Xresources to SCSS

$ npm install xresources-to-scss

This will take a .Xresources file, extract the colours and output them as variables into a .scss file. There will be a variable for each colour (i. e. color0-15) with the same name.

Usage

.convert(input)

This will simply return the SCSS string.

.convertFromFile(inputPath, cb

Takes a file path as it's first argument, and will call the given callback with a possible error as the first argument and the output as the second: cb(err, output).

.fileToFile(inputPath, outputPath, cb)

Converts the file at inputPath to a SCSS file at outputPath.