Skip to content

nullhq/tgs2json

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

tgs2json

tgs2json is a quick and effective command-line tool for converting Telegram .tgs sticker files into .json format quickly and easily.


Installation

Make sure you have Node.js installed on your system. You can download it from nodejs.org.

Install via NPM

To install globally, run:

npm i tgs2json -g

Clone the Repository

Alternatively, you can clone this repository and set it up locally:

git clone https://github.com/nullhq/tgs2json.git
cd tgs2json

To make the script globally executable, run:

npm install -g

Usage

Convert a Specific .tgs File

To convert a single .tgs file to .json, use:

tgs2json your_file.tgs

Convert All .tgs Files in the Current Directory

To convert all .tgs files in the current folder, use:

tgs2json *

Specify an Output Folder

You can specify an output folder for the .json files using the -o option:

tgs2json -o output_folder your_file.tgs

or:

tgs2json -o output_folder *

If the folder doesn’t exist, it'll be created automatically.


Example

Suppose you've a file example.tgs in your current directory and want to convert it to a .json file in an output folder:

tgs2json -o output example.tgs

To convert all .tgs files in the current directory and place the .json files in the output folder:

tgs2json -o output *

Dependencie

This project uses the following module:

  • pako: For decompressing .tgs files.

License

This project is licensed under the MIT License. See the LICENSE file for details.


Feel free to contribute or report any issues! 🛠️

About

Quick and effective CLI tool for converting Telegram .tgs stickers into .json format.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published