jef-color
v1.0.3
Published
Recolor JEF files in NodeJS.
Downloads
4
Readme
jef-color
Recolor JEF files in NodeJS.
Usage example:
const { JefColor, acceptedJEFColors } = require('jef-color');
const jefColor = new JefColor('/path/to/file.jef');
// Gets all the colors in the file.
let colors = jefColor.getColors();
colors[0] = acceptedJEFColors[55];
colors[2] = acceptedJEFColors[55];
// Sets the new colors.
jefColor.setColors(colors);
// Saves a new file with the new
// colors or, if let empty, updates
// the existing file.
jefColor.saveFile('/path/to/new/file');
Thanks
This project was possible thanks to the KDE community, who provided the JEF file specification here.
This project was inspired by akjabay, author of jef2img.
Licensing
This project is under the MIT license. You can find the license here.