1.0.3 • Published 4 years ago

jef-color v1.0.3

Weekly downloads
-
License
ISC
Repository
github
Last release
4 years ago

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.

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago