Skip to content

Commit

Permalink
feat: export map of tag ids to names (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
moonayyur authored May 21, 2024
1 parent 8287163 commit 9774e80
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import { tagsById as exif } from './tags/exif';
import { tagsById as gps } from './tags/gps';
import { tagsById as standard } from './tags/standard';
import TIFFDecoder from './tiffDecoder';
import TiffIfd from './tiffIfd';
import { BufferType, DecodeOptions } from './types';
Expand All @@ -17,4 +20,17 @@ function pageCount(data: BufferType): number {
return decoder.pageCount;
}

export { decodeTIFF as decode, isMultiPage, pageCount, DecodeOptions, TiffIfd };
const tagNames = {
exif,
gps,
standard,
};

export {
decodeTIFF as decode,
isMultiPage,
pageCount,
DecodeOptions,
TiffIfd,
tagNames,
};

0 comments on commit 9774e80

Please sign in to comment.