Skip to content

A TypeScript library for parsing Photoshop TPL (Tool Preset) files and converting the data into a structured JSON format.

License

Notifications You must be signed in to change notification settings

DavyJonesCodes/TPLParserJS

Folders and files

NameName
Last commit message
Last commit date
Aug 21, 2024
Aug 21, 2024
Aug 21, 2024
Aug 21, 2024
Aug 21, 2024
Aug 21, 2024
Aug 21, 2024
Aug 21, 2024
Aug 21, 2024
Aug 21, 2024
Aug 21, 2024
Aug 21, 2024
Aug 21, 2024

Repository files navigation

TPLParserJS

Logo

🎨 TPLParserJS

Welcome to TPLParserJS! πŸ› οΈ This JavaScript/TypeScript package is designed to help you parse Photoshop TPL (Tool Preset) files and extract the data into a friendly JSON format. Perfect for anyone who wants to dive deep into TPL files and understand their inner workings! πŸ’‘

✨ Features

  • πŸ” Parse Photoshop TPL files with ease.
  • πŸ—‚οΈ Extract tool names, types, and properties into JSON format.
  • πŸ’Ύ Save the extracted data for further use or analysis.

πŸš€ Installation

You can easily install TPLParserJS via npm:

npm install tpl-parser

πŸ› οΈ Usage

Importing and Using the Library

Here's a quick example of how to use TPLParserJS in your JavaScript/TypeScript project:

import { TPLReader } from "tpl-parser";

const filePath = "path/to/yourfile.tpl";
const reader = new TPLReader(filePath);
const tplData = reader.readTpl();
reader.saveToJson("output.json");

Command-Line Interface

TPLParserJS also includes a handy command-line interface for quick parsing:

tpl-parser path/to/yourfile.tpl -o output.json

🀝 Contributions

Contributions are welcome! πŸŽ‰ If you'd like to contribute to TPLParserJS, feel free to fork the repository and submit a pull request. If you have any questions or need guidance, don't hesitate to contact me at devjonescodes@gmail.com.

πŸ“„ License

This project is licensed under the Creative Commons Attribution-NonCommercial 4.0 International License. For more details, see the LICENSE file. For commercial use, please contact Dev Jones.

πŸ“¬ Contact

If you have any questions, suggestions, or just want to say hi, feel free to reach out via email: devjonescodes@gmail.com. We'd love to hear from you! 😊