From 9774e80c7d9d9d9db4fc05795701ec20961ad46d Mon Sep 17 00:00:00 2001
From: Mounia <74436107+moonayyur@users.noreply.github.com>
Date: Tue, 21 May 2024 10:38:50 +0200
Subject: [PATCH] feat: export map of tag ids to names (#53)

---
 src/index.ts | 18 +++++++++++++++++-
 1 file changed, 17 insertions(+), 1 deletion(-)

diff --git a/src/index.ts b/src/index.ts
index aa6fc45..115eec9 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -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';
@@ -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,
+};