file-transmuter
v0.4.0
Published
Download file and convert/transmute it.
Downloads
2
Maintainers
Readme
Prerequisites
npm
npm install npm@latest -g
Installation
npm i file-transmuter
Example Usage
const fileTransmuter = require('file-transmuter');
(async ()=>{
// Example of converting an image to JPEG format
// with url :
const result = await fileTransmuter.transmuteUrl('url.png', 'jpeg');
// or with path :
//const result = await fileTransmuter.transmutePath('path.png', 'jpeg');
console.log(result);
})()
You will find the output file in a transmutedFiles folder
About The Project
Convertisseur de fichiers
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 Format | Possible Output Formats | | --------------- | ----------------------------------------------------------------- | | Images | txt, jpeg, jpg, png, gif, tif | | Videos | mp3, mov, avi, webm, flv, f4v, webp, mp4, ogv | | Audio | mp3 | | Documents | csv, txt, json (XLS, XLSX), txt (DOCX), txt (PDF) | | Pages Web | txt (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!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
License
Distributed under the IIM License.
Contact
Armand DORARD - [email protected]
Tom Gourdy - [email protected]
Project Link: https://github.com/Ericar974/PFE-librairie