1.0.0 • Published 12 months ago

filechemy v1.0.0

Weekly downloads
-
License
IIM
Repository
-
Last release
12 months ago

Node

Prerequisites

npm

  npm install npm@latest -g

Installation

  npm i filechemy

Example Usage

const FileChemy = require('filechemy');

(async ()=>{
    // Example of converting an image to JPEG format
    // with url :
    const result = await FileChemy.transmuteUrl('url.png', 'jpeg');
    
    // or with path :
    //const result = await FileChemy.transmutePath('path.png', 'jpeg');
    
    // personalised video to gif :
    // const result = await FileChemy.transmutePath('path.mp4', ['gif', startTime, duration, reduceQuality]);
    
    console.log(result);
})()

You will find the output file in a transmutedFiles folder

About The Project

File converter

More on our documentation : ( in processing )

This Node.js library provides file conversion features for various formats. It supports the following file types as input:

  • Images: PNG, JPG, JPEG, TIF, GIF
  • Videos: MP4, MOV, AVI, WEBM, FLV, F4V, OGV
  • Audio: MP3
  • Documents: XLS, XLSX, DOCX, PDF
  • Others: HTML, HTM

Supported Output Formats

Input FormatPossible Output Formats
Imagestxt, jpeg, jpg, png, gif, tif
Videosmp3, mov, avi, webm, flv, f4v, webp, mp4, ogv, gif
Audiomp3
Documentscsv, txt, json (XLS, XLSX), txt (DOCX), txt (PDF)
Pages Webtxt (HTML, HTM)

Demo

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the IIM License.

Contact

Armand DORARD - armand.dorard@edu.devinci.fr

Tom Gourdy - tom.gourdy@edu.devinci.fr

Project Link: https://github.com/Ericar974/PFE-librairie