{"id":18754973,"url":"https://github.com/nottimtam/file-converter-core","last_synced_at":"2026-01-07T04:18:35.819Z","repository":{"id":256324203,"uuid":"854932730","full_name":"NotTimTam/file-converter-core","owner":"NotTimTam","description":"Core file conversion modules for @nottimtam/file-converter.","archived":false,"fork":false,"pushed_at":"2024-09-13T23:21:21.000Z","size":92,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-26T19:11:08.515Z","etag":null,"topics":["api","conversion","express","file","file-converter","module"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@nottimtam/file-converter-core","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NotTimTam.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-10T02:31:31.000Z","updated_at":"2024-09-13T23:21:24.000Z","dependencies_parsed_at":"2024-09-13T09:50:57.068Z","dependency_job_id":"ad4a2b73-e62f-4e64-9a63-0b482fd8a6e1","html_url":"https://github.com/NotTimTam/file-converter-core","commit_stats":null,"previous_names":["nottimtam/file-converter-core"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NotTimTam%2Ffile-converter-core","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NotTimTam%2Ffile-converter-core/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NotTimTam%2Ffile-converter-core/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NotTimTam%2Ffile-converter-core/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NotTimTam","download_url":"https://codeload.github.com/NotTimTam/file-converter-core/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248654030,"owners_count":21140236,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","conversion","express","file","file-converter","module"],"created_at":"2024-11-07T17:30:59.405Z","updated_at":"2026-01-07T04:18:30.789Z","avatar_url":"https://github.com/NotTimTam.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @nottimtam/file-converter-core\n\nCore file conversion modules for [@nottimtam/file-converter](https://www.npmjs.com/package/@nottimtam/file-converter).\n\n## Installation\n\n```terminal\nnpm i @nottimtam/file-converter @nottimtam/file-converter-core\n```\n\n## Usage\n\nSee [file-converter](https://github.com/NotTimTam/file-converter) for general implementation instructions. To implement these modules, add them to the modules array of your `FileConverter` constructor:\n\n```js\nimport FileConverter from \"@nottimtam/file-converter\";\nimport CoreModules from \"@nottimtam/file-converter-core\";\n\nconst fileConverter = new FileConverter({\n\tmodules: [...CoreModules],\n});\n```\n\n## Modules\n\nYou can use all the modules:\n\n```js\nimport CoreModules from \"@nottimtam/file-converter-core\";\n```\n\nOr just the groups you need:\n\n```js\nimport {\n\tImageModules,\n\tDocumentModules,\n\tVideoModules,\n\tAudioModules,\n} from \"@nottimtam/file-converter-core\";\n```\n\n_Do not use both `CoreModules` and a sub-group at the same time, or conflict errors will be thrown._\n\n**NOTE:** To use the audio/video modules, you will need to have `ffmpeg` installed to the system your application is running on.\n\nFor a `Dockerfile`, you can add the line:\n\n```Dockerfile\nRUN apt-get update \u0026\u0026 apt-get install -y \\\n    ffmpeg \\\n    \u0026\u0026 apt-get clean \\\n    \u0026\u0026 rm -rf /var/lib/apt/lists/*\n```\n\nIf you do not want to use `AudioModules` or `VideoModules`, manually import the module groups you would like to use instead of using `CoreModules`\n\n### ImageModules\n\n-   JPEGToPNG \u0026mdash; `image/jpeg` to `image/png`\n-   JPEGToWebP \u0026mdash; `image/jpeg` to `image/webp`\n-   JPEGToGIF \u0026mdash; `image/jpeg` to `image/gif`\n-   JPEGToAVIF \u0026mdash; `image/jpeg` to `image/avif`\n-   JPEGToTIFF \u0026mdash; `image/jpeg` to `image/tiff`\n-   PNGToJPEG \u0026mdash; `image/png` to `image/jpeg`\n-   PNGToWebP \u0026mdash; `image/png` to `image/webp`\n-   PNGToGIF \u0026mdash; `image/png` to `image/gif`\n-   PNGToAVIF \u0026mdash; `image/png` to `image/avif`\n-   PNGToTIFF \u0026mdash; `image/png` to `image/tiff`\n-   WebPToPNG \u0026mdash; `image/webp` to `image/png`\n-   WebPToJPEG \u0026mdash; `image/webp` to `image/jpeg`\n-   WebPToGIF \u0026mdash; `image/webp` to `image/gif`\n-   WebPToAVIF \u0026mdash; `image/webp` to `image/avif`\n-   WebPToTIFF \u0026mdash; `image/webp` to `image/tiff`\n-   GIFToPNG \u0026mdash; `image/gif` to `image/png`\n-   GIFToWebP \u0026mdash; `image/gif` to `image/webp`\n-   GIFToJPEG \u0026mdash; `image/gif` to `image/jpeg`\n-   GIFToAVIF \u0026mdash; `image/gif` to `image/avif`\n-   GIFToTIFF \u0026mdash; `image/gif` to `image/tiff`\n-   AVIFToPNG \u0026mdash; `image/avif` to `image/png`\n-   AVIFToWebP \u0026mdash; `image/avif` to `image/webp`\n-   AVIFToGIF \u0026mdash; `image/avif` to `image/gif`\n-   AVIFToJPEG \u0026mdash; `image/avif` to `image/jpeg`\n-   AVIFToTIFF \u0026mdash; `image/avif` to `image/tiff`\n-   TIFFToPNG \u0026mdash; `image/tiff` to `image/png`\n-   TIFFToWebP \u0026mdash; `image/tiff` to `image/webp`\n-   TIFFToGIF \u0026mdash; `image/tiff` to `image/gif`\n-   TIFFToAVIF \u0026mdash; `image/tiff` to `image/avif`\n-   TIFFToJPEG \u0026mdash; `image/tiff` to `image/jpeg`\n\n---\n\n### DocumentModules\n\n-   ImageToPDF \u0026mdash; `image/jpeg`, `image/png` to `application/pdf`\n-   PDFToTXT \u0026mdash; `application/pdf` to `text/plain`\n-   PDFToHTML \u0026mdash; `application/pdf` to `text/html`\n-   PDFToDOCX \u0026mdash; `application/pdf` to `application/vnd.openxmlformats-officedocument.wordprocessingml.document`\n-   TXTToPDF \u0026mdash; `text/plain` to `application/pdf`\n-   TXTToDOCX \u0026mdash; `text/plain` to `application/vnd.openxmlformats-officedocument.wordprocessingml.document`\n-   TXTToHTML \u0026mdash; `text/plain` to `text/html`\n-   HTMLToTXT \u0026mdash; `text/html` to `text/plain`\n-   DOCXToTXT \u0026mdash; `application/vnd.openxmlformats-officedocument.wordprocessingml.document` to `text/plain`\n-   DOCXToHTML \u0026mdash; `application/vnd.openxmlformats-officedocument.wordprocessingml.document` to `text/html`\n\n---\n\n### AudioModules\n\n-   AudioToMP3 \u0026mdash; `audio/x-wav`, `audio/x-flac`, `audio/ogg`, `audio/x-aiff` to `audio/mpeg`\n-   AudioToWAV \u0026mdash; `audio/mpeg`, `audio/x-flac`, `audio/ogg`, `audio/x-aiff` to `audio/x-wav`\n-   AudioToFLAC \u0026mdash; `audio/x-wav`, `audio/mpeg`, `audio/ogg`, `audio/x-aiff` to `audio/x-flac`\n-   AudioToOGG \u0026mdash; `audio/x-wav`, `audio/x-flac`, `audio/mpeg`, `audio/x-aiff` to `audio/ogg`\n-   AudioToAIFF \u0026mdash; `audio/x-wav`, `audio/x-flac`, `audio/ogg`, `audio/mpeg` to `audio/x-aiff`\n\n---\n\n### VideoModules\n\n-   VideoToMP4 \u0026mdash; `video/x-msvideo`, `video/x-matroska`, `video/quicktime`, `video/webm`, `video/mpeg`, `video/3gpp` to `video/mp4`\n-   VideoToAVI \u0026mdash; `video/mp4`, `video/x-matroska`, `video/quicktime`, `video/webm`, `video/mpeg`, `video/3gpp` to `video/x-msvideo`\n-   VideoToMOV \u0026mdash; `video/x-msvideo`, `video/x-matroska`, `video/mp4`, `video/webm`, `video/mpeg`, `video/3gpp` to `video/quicktime`\n-   VideoToWEBM \u0026mdash; `video/x-msvideo`, `video/x-matroska`, `video/quicktime`, `video/mp4`, `video/mpeg`, `video/3gpp` to `video/webm`\n-   VideoTo3GP \u0026mdash; `video/x-msvideo`, `video/x-matroska`, `video/quicktime`, `video/webm`, `video/mpeg`, `video/mp4` to `video/3gpp`\n\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnottimtam%2Ffile-converter-core","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnottimtam%2Ffile-converter-core","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnottimtam%2Ffile-converter-core/lists"}