Package Exports
- @nottimtam/file-converter-core
- @nottimtam/file-converter-core/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@nottimtam/file-converter-core) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@nottimtam/file-converter-core
Core file conversion modules for @nottimtam/file-converter.
This package is still a work-in-progress, useful modules are in the works.
Installation
npm i @nottimtam/file-converter @nottimtam/file-converter-coreUsage
See file-converter for general implementation instructions. To implement these modules, add them to the modules array of your FileConverter constructor:
import FileConverter from "@nottimtam/file-converter";
import CoreModules from "@nottimtam/file-converter-core";
const fileConverter = new FileConverter({
modules: [...CoreModules],
});Modules
You can use all the modules:
import CoreModules from "@nottimtam/file-converter-core";Or just the groups you need:
import { ImageModules, PDFModules } from "@nottimtam/file-converter-core";Do not use both CoreModules and a sub-group at the same time, or conflict errors will be thrown.
ImageModules
- JPEGToPNG —
image/jpegtoimage/png - JPEGToWebP —
image/jpegtoimage/webp - JPEGToGIF —
image/jpegtoimage/gif - JPEGToAVIF —
image/jpegtoimage/avif - JPEGToTIFF —
image/jpegtoimage/tiff - PNGToJPEG —
image/pngtoimage/jpeg - PNGToWebP —
image/pngtoimage/webp - PNGToGIF —
image/pngtoimage/gif - PNGToAVIF —
image/pngtoimage/avif - PNGToTIFF —
image/pngtoimage/tiff - WebPToPNG —
image/webptoimage/png - WebPToJPEG —
image/webptoimage/jpeg - WebPToGIF —
image/webptoimage/gif - WebPToAVIF —
image/webptoimage/avif - WebPToTIFF —
image/webptoimage/tiff - GIFToPNG —
image/giftoimage/png - GIFToWebP —
image/giftoimage/webp - GIFToJPEG —
image/giftoimage/jpeg - GIFToAVIF —
image/giftoimage/avif - GIFToTIFF —
image/giftoimage/tiff - AVIFToPNG —
image/aviftoimage/png - AVIFToWebP —
image/aviftoimage/webp - AVIFToGIF —
image/aviftoimage/gif - AVIFToJPEG —
image/aviftoimage/jpeg - AVIFToTIFF —
image/aviftoimage/tiff - TIFFToPNG —
image/tifftoimage/png - TIFFToWebP —
image/tifftoimage/webp - TIFFToGIF —
image/tifftoimage/gif - TIFFToAVIF —
image/tifftoimage/avif - TIFFToJPEG —
image/tifftoimage/jpeg
PDFModules
- JPEGToPDF —
image/jpegtoapplication/pdf