{"_id":"@bernierllc/markdown-detector","_rev":"12-b7f1fc7c8b5fa63896965c277a286c7a","name":"@bernierllc/markdown-detector","dist-tags":{"latest":"0.6.0"},"versions":{"0.1.1":{"name":"@bernierllc/markdown-detector","version":"0.1.1","keywords":["markdown","detector","flavor","frontmatter","mdx","gfm","metadata"],"author":{"name":"Bernier LLC"},"license":"SEE LICENSE IN LICENSE","_id":"@bernierllc/markdown-detector@0.1.1","maintainers":[{"name":"alikhan410","email":"mczeyo@gmail.com"},{"name":"mkbernier","email":"mkbernier@gmail.com"}],"homepage":"https://github.com/bernierllc/tools#readme","bugs":{"url":"https://github.com/bernierllc/tools/issues"},"dist":{"shasum":"2d857c7200cd1283d5d18149865554955ede7844","tarball":"https://registry.npmjs.org/@bernierllc/markdown-detector/-/markdown-detector-0.1.1.tgz","fileCount":15,"integrity":"sha512-sVk3Y98GTXLp1PVhKlZmYUna+lF+9PEbXm4CHifiNqKiidp+XXYTsAFpUXZuXuutZq6UgLPSsaKYHNFdEG3ADA==","signatures":[{"sig":"MEQCIEuvHMjqSeX1MXAFRPJiqDWBxSqTnvxAcOHlJUcrba2bAiAlq2d1/OquHQ0uamImek6nDiEXl6nyFlzeBG2E7HGKkQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":38727},"main":"dist/index.js","types":"dist/index.d.ts","engines":{"node":">=16.0.0"},"gitHead":"472d78f7c9e2b45f7e64d3a33fcfc86c2be41419","scripts":{"lint":"eslint src/**/*.ts","test":"jest","build":"tsc","clean":"rm -rf dist","prebuild":"npm run clean","test:watch":"jest --watch","test:coverage":"jest --coverage"},"_npmUser":{"name":"mkbernier","email":"mkbernier@gmail.com"},"repository":{"url":"git+https://github.com/bernierllc/tools.git","type":"git","directory":"packages/markdown-detector"},"_npmVersion":"11.4.2","description":"Detects markdown flavor (MDX, GFM, standard, frontmatter) and extracts metadata with high confidence.","directories":{},"_nodeVersion":"24.4.1","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.0.0","eslint":"^8.0.0","ts-jest":"^29.0.0","typescript":"^5.0.0","@types/jest":"^29.0.0","@types/node":"^20.0.0"},"_npmOperationalInternal":{"tmp":"tmp/markdown-detector_0.1.1_1753681244243_0.9369129065744048","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@bernierllc/markdown-detector","version":"0.2.0","keywords":["markdown","detector","flavor","frontmatter","mdx","gfm","metadata"],"author":{"name":"Bernier LLC"},"license":"SEE LICENSE IN LICENSE","_id":"@bernierllc/markdown-detector@0.2.0","maintainers":[{"name":"alikhan410","email":"mczeyo@gmail.com"},{"name":"mkbernier","email":"mkbernier@gmail.com"}],"homepage":"https://github.com/bernierllc/tools#readme","bugs":{"url":"https://github.com/bernierllc/tools/issues"},"dist":{"shasum":"7235276b90eacd6661dcf163eec6b5bc1118f220","tarball":"https://registry.npmjs.org/@bernierllc/markdown-detector/-/markdown-detector-0.2.0.tgz","fileCount":15,"integrity":"sha512-ue3yAUKvaKIdVPjtp+0Cp79GH6Kl9m3IpE7q1aMuhVGKLViB1DZ1yfByf5l2dosIaEVNEB7PhRtYMpyS33plaw==","signatures":[{"sig":"MEQCIAQsksC+3nVjXat+3oOYFt6vP9JRiJUM2GgbGXa9ixhSAiBKy8iHqsGoA262h6loLS8ZnV0lmW+XySuEIGZWSZyr8Q==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":39918},"main":"dist/index.js","types":"dist/index.d.ts","engines":{"node":">=16.0.0"},"gitHead":"3594b065a2505ecd79ec5d2f3ea2214533495eed","scripts":{"lint":"eslint src/**/*.ts","test":"jest","build":"tsc","clean":"rm -rf dist","prebuild":"npm run clean","test:watch":"jest --watch","test:coverage":"jest --coverage"},"_npmUser":{"name":"mkbernier","email":"mkbernier@gmail.com"},"repository":{"url":"git+https://github.com/bernierllc/tools.git","type":"git","directory":"packages/markdown-detector"},"_npmVersion":"11.4.2","description":"Detects markdown flavor (MDX, GFM, standard, frontmatter) and extracts metadata with high confidence.","directories":{},"_nodeVersion":"24.4.1","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.0.0","eslint":"^8.0.0","ts-jest":"^29.0.0","typescript":"^5.0.0","@types/jest":"^29.0.0","@types/node":"^20.0.0"},"_npmOperationalInternal":{"tmp":"tmp/markdown-detector_0.2.0_1754172361191_0.1506249304516376","host":"s3://npm-registry-packages-npm-production"}},"0.2.1":{"name":"@bernierllc/markdown-detector","version":"0.2.1","keywords":["markdown","detector","flavor","frontmatter","mdx","gfm","metadata"],"author":{"name":"Bernier LLC"},"license":"MIT","_id":"@bernierllc/markdown-detector@0.2.1","maintainers":[{"name":"alikhan410","email":"mczeyo@gmail.com"},{"name":"mkbernier","email":"mkbernier@gmail.com"}],"homepage":"https://github.com/bernierllc/tools#readme","bugs":{"url":"https://github.com/bernierllc/tools/issues"},"dist":{"shasum":"c77a26a5db77d2a7c637e1b293905246beff6d10","tarball":"https://registry.npmjs.org/@bernierllc/markdown-detector/-/markdown-detector-0.2.1.tgz","fileCount":15,"integrity":"sha512-lhYXtSoqulmG6ohOXLwYeLsNNbqWVuWxbuowG/EvwNrQWMxtFmySLyP5sJx1tWwB7dvwdWgpOxorLDY3WSN81A==","signatures":[{"sig":"MEQCIFGX/aD7yW1PaFTuFe1GeZw8tj/bzgaLcWOn/5Z5+5O/AiBbX5CV+mcSRjZiSjYy3gAYcLzV8H/dckEqs6qnk1PfUw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":39900},"main":"dist/index.js","types":"dist/index.d.ts","engines":{"node":">=16.0.0"},"gitHead":"8c293d5c7b3ffd34a3e853d24b70549003e9670e","scripts":{"lint":"eslint src/**/*.ts","test":"jest","build":"tsc","clean":"rm -rf dist","prebuild":"npm run clean","test:watch":"jest --watch","test:coverage":"jest --coverage"},"_npmUser":{"name":"mkbernier","email":"mkbernier@gmail.com"},"repository":{"url":"git+https://github.com/bernierllc/tools.git","type":"git","directory":"packages/markdown-detector"},"_npmVersion":"11.4.2","description":"Detects markdown flavor (MDX, GFM, standard, frontmatter) and extracts metadata with high confidence.","directories":{},"_nodeVersion":"24.4.1","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.0.0","eslint":"^8.0.0","ts-jest":"^29.0.0","typescript":"^5.0.0","@types/jest":"^29.0.0","@types/node":"^20.0.0"},"_npmOperationalInternal":{"tmp":"tmp/markdown-detector_0.2.1_1754241913282_0.21978779938607595","host":"s3://npm-registry-packages-npm-production"}},"0.2.2":{"name":"@bernierllc/markdown-detector","version":"0.2.2","keywords":["markdown","detector","flavor","frontmatter","mdx","gfm","metadata"],"author":{"name":"Bernier LLC"},"license":"MIT","_id":"@bernierllc/markdown-detector@0.2.2","maintainers":[{"name":"alikhan410","email":"mczeyo@gmail.com"},{"name":"mkbernier","email":"mkbernier@gmail.com"}],"homepage":"https://github.com/bernierllc/tools#readme","bugs":{"url":"https://github.com/bernierllc/tools/issues"},"dist":{"shasum":"6fbcaa29faab797f61771da306bc36e64c37315f","tarball":"https://registry.npmjs.org/@bernierllc/markdown-detector/-/markdown-detector-0.2.2.tgz","fileCount":15,"integrity":"sha512-TflHplJYVG50XO8Dipu5XZbSZbJuM39tqYcsAjDv087akb6TWRY4ARe2UHa7BrIc50Y5+Nvmwmwo21UPgmGS7A==","signatures":[{"sig":"MEQCIESmTuTjNSwdBnoyJKpxJShvF/CvBp8YPuqiZKF7/35sAiBHlCHi1086sIC6iL9cQ5AwbaXqiy9MiMxyZve6n2OH3Q==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":39935},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","engines":{"node":">=16.0.0"},"gitHead":"7d0036c31f4603af918aa97efd864e02972759e7","scripts":{"lint":"eslint src/**/*.ts","test":"jest","build":"tsc","clean":"rm -rf dist","prebuild":"npm run clean","test:watch":"jest --watch","test:coverage":"jest --coverage"},"_npmUser":{"name":"mkbernier","email":"mkbernier@gmail.com"},"repository":{"url":"git+https://github.com/bernierllc/tools.git","type":"git","directory":"packages/markdown-detector"},"_npmVersion":"11.6.2","description":"Detects markdown flavor (MDX, GFM, standard, frontmatter) and extracts metadata with high confidence.","directories":{},"_nodeVersion":"25.2.0","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.0.0","eslint":"^8.0.0","ts-jest":"^29.0.0","typescript":"^5.0.0","@types/jest":"^29.0.0","@types/node":"^20.0.0"},"_npmOperationalInternal":{"tmp":"tmp/markdown-detector_0.2.2_1763334879283_0.07138396859535212","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"name":"@bernierllc/markdown-detector","version":"0.3.0","keywords":["markdown","detector","flavor","frontmatter","mdx","gfm","metadata"],"author":{"name":"Bernier LLC"},"license":"MIT","_id":"@bernierllc/markdown-detector@0.3.0","maintainers":[{"name":"alikhan410","email":"mczeyo@gmail.com"},{"name":"mkbernier","email":"mkbernier@gmail.com"}],"homepage":"https://github.com/bernierllc/tools#readme","bugs":{"url":"https://github.com/bernierllc/tools/issues"},"dist":{"shasum":"29166f301246413f614902fb612eacdce5fd0092","tarball":"https://registry.npmjs.org/@bernierllc/markdown-detector/-/markdown-detector-0.3.0.tgz","fileCount":15,"integrity":"sha512-d261WVusWBOj/j3j6l/oV66TUkz1ebQhz8PoSM0iKYdqgNYj/fAi4ovRwFntnvIK1P+LGF/s2g5JLJxnG5HEpA==","signatures":[{"sig":"MEUCIQCZ3nwM5wrCdsc+voqOVse0XUEdDvKBnASuxSgyPO066AIgCyCTYuLiht2OsTdSD57Y786nxFaLdiLdYrZdFzVK+5w=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":40112},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","engines":{"node":">=16.0.0"},"gitHead":"af7e74b3715d56d3a193e1bb6743b337c2b0df6d","scripts":{"lint":"eslint src/**/*.ts","test":"jest","build":"tsc","clean":"rm -rf dist","prebuild":"npm run clean","test:run":"jest","test:watch":"jest --watch","test:coverage":"jest --coverage"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:bede5539-314b-4b29-a79c-366cf6f9995f"}},"repository":{"url":"git+https://github.com/bernierllc/tools.git","type":"git","directory":"packages/markdown-detector"},"_npmVersion":"lerna/9.0.3/node@v20.19.6+x64 (linux)","description":"Detects markdown flavor (MDX, GFM, standard, frontmatter) and extracts metadata with high confidence.","directories":{},"_nodeVersion":"20.19.6","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.0.0","eslint":"^8.0.0","ts-jest":"^29.0.0","typescript":"^5.0.0","@types/jest":"^29.0.0","@types/node":"^20.0.0"},"_npmOperationalInternal":{"tmp":"tmp/markdown-detector_0.3.0_1767642313919_0.1736650903026693","host":"s3://npm-registry-packages-npm-production"}},"0.3.1":{"name":"@bernierllc/markdown-detector","version":"0.3.1","keywords":["markdown","detector","flavor","frontmatter","mdx","gfm","metadata"],"author":{"name":"Bernier LLC"},"license":"MIT","_id":"@bernierllc/markdown-detector@0.3.1","maintainers":[{"name":"alikhan410","email":"mczeyo@gmail.com"},{"name":"mkbernier","email":"mkbernier@gmail.com"}],"homepage":"https://github.com/bernierllc/tools#readme","bugs":{"url":"https://github.com/bernierllc/tools/issues"},"dist":{"shasum":"9d41ff7ecc7bffcdc69ea5cb5cd33538d55a5620","tarball":"https://registry.npmjs.org/@bernierllc/markdown-detector/-/markdown-detector-0.3.1.tgz","fileCount":15,"integrity":"sha512-VXFJ/m2jOR8+94c4C2ZdAlc6RaVG720LUn3nHMY5pLeTTo1VK/53EBGfGPgd7Z1/HU4WxeCT8hEsWgn5xeYH0Q==","signatures":[{"sig":"MEUCIQDu1K4vx/oKBXJ7hnVGeQgaRwuPG+Pr6BWy1iW1BUJ9UQIgDXVwmSyydwMPw7PUzIkd0987cxyb7llbXfd6C7hi5ac=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":40054},"main":"dist/index.js","type":"module","_from":"file:bernierllc-markdown-detector-0.3.1.tgz","types":"dist/index.d.ts","engines":{"node":">=16.0.0"},"scripts":{"lint":"eslint src/**/*.ts","test":"jest","build":"tsc","clean":"rm -rf dist","prebuild":"npm run clean","test:run":"jest","test:watch":"jest --watch","test:coverage":"jest --coverage"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:bede5539-314b-4b29-a79c-366cf6f9995f"}},"_resolved":"/tmp/1c2cfc520e51bb5e525bce3a4376e3fd/bernierllc-markdown-detector-0.3.1.tgz","_integrity":"sha512-VXFJ/m2jOR8+94c4C2ZdAlc6RaVG720LUn3nHMY5pLeTTo1VK/53EBGfGPgd7Z1/HU4WxeCT8hEsWgn5xeYH0Q==","repository":{"url":"git+https://github.com/bernierllc/tools.git","type":"git","directory":"packages/markdown-detector"},"_npmVersion":"11.11.0","description":"Detects markdown flavor (MDX, GFM, standard, frontmatter) and extracts metadata with high confidence.","directories":{},"_nodeVersion":"20.20.0","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.0.0","eslint":"^8.0.0","ts-jest":"^29.0.0","typescript":"^5.0.0","@types/jest":"^29.0.0","@types/node":"^20.0.0"},"_npmOperationalInternal":{"tmp":"tmp/markdown-detector_0.3.1_1773078027615_0.7469638621387378","host":"s3://npm-registry-packages-npm-production"}},"0.3.2":{"name":"@bernierllc/markdown-detector","version":"0.3.2","keywords":["markdown","detector","flavor","frontmatter","mdx","gfm","metadata"],"author":{"name":"Bernier LLC"},"license":"MIT","_id":"@bernierllc/markdown-detector@0.3.2","maintainers":[{"name":"alikhan410","email":"mczeyo@gmail.com"},{"name":"mkbernier","email":"mkbernier@gmail.com"}],"homepage":"https://github.com/bernierllc/tools#readme","bugs":{"url":"https://github.com/bernierllc/tools/issues"},"dist":{"shasum":"1149950b8590cb42ca6df140a12a3ba070ff072b","tarball":"https://registry.npmjs.org/@bernierllc/markdown-detector/-/markdown-detector-0.3.2.tgz","fileCount":15,"integrity":"sha512-HJSH+N63MULA74HAzyye++uxNbtQq8z7oCEioF7d3ZVXFJmwAwgd4uUjM6ZmSPemPAcGpxemAybDJ4oLvnBx0A==","signatures":[{"sig":"MEUCIQDpQBE8cNo3jqrjftGrUdolCxVTDihF27wTyOoed7YVvgIgbDHBK2RxDYo0lRW9ERLUbaJ1rT1yDpRw4ftGLQdEsV4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":40054},"main":"dist/index.js","type":"module","_from":"file:bernierllc-markdown-detector-0.3.2.tgz","types":"dist/index.d.ts","engines":{"node":">=16.0.0"},"scripts":{"lint":"eslint src/**/*.ts","test":"jest","build":"tsc","clean":"rm -rf dist","prebuild":"npm run clean","test:run":"jest","test:watch":"jest --watch","test:coverage":"jest --coverage"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:bede5539-314b-4b29-a79c-366cf6f9995f"}},"_resolved":"/tmp/072c874649393b25a8d6d633cfac4c6f/bernierllc-markdown-detector-0.3.2.tgz","_integrity":"sha512-HJSH+N63MULA74HAzyye++uxNbtQq8z7oCEioF7d3ZVXFJmwAwgd4uUjM6ZmSPemPAcGpxemAybDJ4oLvnBx0A==","repository":{"url":"git+https://github.com/bernierllc/tools.git","type":"git","directory":"packages/markdown-detector"},"_npmVersion":"11.11.0","description":"Detects markdown flavor (MDX, GFM, standard, frontmatter) and extracts metadata with high confidence.","directories":{},"_nodeVersion":"20.20.0","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.0.0","eslint":"^8.0.0","ts-jest":"^29.0.0","typescript":"^5.0.0","@types/jest":"^29.0.0","@types/node":"^20.0.0"},"_npmOperationalInternal":{"tmp":"tmp/markdown-detector_0.3.2_1773081210717_0.16980494415118974","host":"s3://npm-registry-packages-npm-production"}},"0.5.0":{"name":"@bernierllc/markdown-detector","version":"0.5.0","keywords":["markdown","detector","flavor","frontmatter","mdx","gfm","metadata"],"author":{"name":"Bernier LLC"},"license":"MIT","_id":"@bernierllc/markdown-detector@0.5.0","maintainers":[{"name":"alikhan410","email":"mczeyo@gmail.com"},{"name":"mkbernier","email":"mkbernier@gmail.com"}],"homepage":"https://github.com/bernierllc/tools#readme","bugs":{"url":"https://github.com/bernierllc/tools/issues"},"dist":{"shasum":"d0504a71ef30388fdd11679e7823110cb71f9be6","tarball":"https://registry.npmjs.org/@bernierllc/markdown-detector/-/markdown-detector-0.5.0.tgz","fileCount":19,"integrity":"sha512-gXRl8g0QYW3KJTLDdcsP1jEompCJqzXUNX6Wcw2ZvNw5hKXDPaHzkkbPte7DBLGUyYAoA1TzOqggKCAZsRnKTQ==","signatures":[{"sig":"MEUCIQC9tmgDWoMK/HzCIBRn3e5S6lmN2/QrAfAAGa6YOIPKpwIgG3Gb7qfy4MsD/aE9qmlb8gGo5pYMwsmq/eXUAMUOx/0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":42874},"main":"dist/index.js","type":"module","_from":"file:bernierllc-markdown-detector-0.5.0.tgz","types":"dist/index.d.ts","engines":{"node":">=16.0.0"},"scripts":{"lint":"eslint src/**/*.ts","test":"jest","build":"tsc","clean":"rm -rf dist","prebuild":"npm run clean","test:run":"jest","test:watch":"jest --watch","test:coverage":"jest --coverage"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:bede5539-314b-4b29-a79c-366cf6f9995f"}},"_resolved":"/home/runner/work/tools/tools/packages/core/markdown-detector/bernierllc-markdown-detector-0.5.0.tgz","_integrity":"sha512-gXRl8g0QYW3KJTLDdcsP1jEompCJqzXUNX6Wcw2ZvNw5hKXDPaHzkkbPte7DBLGUyYAoA1TzOqggKCAZsRnKTQ==","repository":{"url":"git+https://github.com/bernierllc/tools.git","type":"git","directory":"packages/markdown-detector"},"_npmVersion":"11.14.1","description":"Detects markdown flavor (MDX, GFM, standard, frontmatter) and extracts metadata with high confidence.","directories":{},"_nodeVersion":"20.20.2","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.0.0","eslint":"^8.0.0","ts-jest":"^29.0.0","typescript":"^5.0.0","@types/jest":"^29.0.0","@types/node":"^20.0.0"},"_npmOperationalInternal":{"tmp":"tmp/markdown-detector_0.5.0_1779241229411_0.36658389174777284","host":"s3://npm-registry-packages-npm-production"}},"0.6.0":{"name":"@bernierllc/markdown-detector","version":"0.6.0","description":"Detects markdown flavor (MDX, GFM, standard, frontmatter) and extracts metadata with high confidence.","type":"module","main":"dist/index.js","types":"dist/index.d.ts","keywords":["markdown","detector","flavor","frontmatter","mdx","gfm","metadata"],"author":{"name":"Bernier LLC"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/bernierllc/tools.git","directory":"packages/markdown-detector"},"devDependencies":{"@types/jest":"^29.0.0","@types/node":"^20.0.0","eslint":"^8.0.0","jest":"^29.0.0","ts-jest":"^29.0.0","typescript":"^5.0.0"},"engines":{"node":">=16.0.0"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"scripts":{"build":"tsc","test":"jest","test:run":"jest","test:watch":"jest --watch","test:coverage":"jest --coverage","lint":"eslint src/**/*.ts","clean":"rm -rf dist","prebuild":"npm run clean"},"_id":"@bernierllc/markdown-detector@0.6.0","bugs":{"url":"https://github.com/bernierllc/tools/issues"},"homepage":"https://github.com/bernierllc/tools#readme","_integrity":"sha512-+nqusw7VsGY4bw9ZlfsQ3CHl37hAhE9cPvOk4B2WGGbwbxSwQ5cHUaa0NkymqaZ19W1msCHx2YEmrw7csaTZCg==","_resolved":"/home/runner/work/tools/tools/packages/core/markdown-detector/bernierllc-markdown-detector-0.6.0.tgz","_from":"file:bernierllc-markdown-detector-0.6.0.tgz","_nodeVersion":"20.20.2","_npmVersion":"11.14.1","dist":{"integrity":"sha512-+nqusw7VsGY4bw9ZlfsQ3CHl37hAhE9cPvOk4B2WGGbwbxSwQ5cHUaa0NkymqaZ19W1msCHx2YEmrw7csaTZCg==","shasum":"2f1c1134427e9d2556df091c1e23d04565d0c910","tarball":"https://registry.npmjs.org/@bernierllc/markdown-detector/-/markdown-detector-0.6.0.tgz","fileCount":19,"unpackedSize":42874,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQClt8H44q1txNpbavZW3rjvX4eNAkgCayzpudVZ5Alx3QIgTH2U9d9cMjx1/mJmnYhKO9wSX1PZpmL0JmwXi5ayPns="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:bede5539-314b-4b29-a79c-366cf6f9995f"}},"directories":{},"maintainers":[{"name":"alikhan410","email":"mczeyo@gmail.com"},{"name":"mkbernier","email":"mkbernier@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/markdown-detector_0.6.0_1779249976814_0.689295098997049"},"_hasShrinkwrap":false}},"time":{"created":"2025-07-28T05:40:43.737Z","modified":"2026-05-20T04:06:17.153Z","0.1.1":"2025-07-28T05:40:44.431Z","0.2.0":"2025-08-02T22:06:01.382Z","0.2.1":"2025-08-03T17:25:13.467Z","0.2.2":"2025-11-16T23:14:39.468Z","0.3.0":"2026-01-05T19:45:14.052Z","0.3.1":"2026-03-09T17:40:27.766Z","0.3.2":"2026-03-09T18:33:30.888Z","0.5.0":"2026-05-20T01:40:29.569Z","0.6.0":"2026-05-20T04:06:17.007Z"},"bugs":{"url":"https://github.com/bernierllc/tools/issues"},"author":{"name":"Bernier LLC"},"license":"MIT","homepage":"https://github.com/bernierllc/tools#readme","keywords":["markdown","detector","flavor","frontmatter","mdx","gfm","metadata"],"repository":{"type":"git","url":"git+https://github.com/bernierllc/tools.git","directory":"packages/markdown-detector"},"description":"Detects markdown flavor (MDX, GFM, standard, frontmatter) and extracts metadata with high confidence.","maintainers":[{"name":"alikhan410","email":"mczeyo@gmail.com"},{"name":"mkbernier","email":"mkbernier@gmail.com"}],"readme":"# @bernierllc/markdown-detector\n\nA pure TypeScript package for detecting markdown flavor (MDX, GFM, standard, frontmatter) and extracting metadata with high confidence. No rendering or React/remark/rehype dependencies.\n\n## Features\n\n- **🔄 Automatic Detection**: Detects markdown flavor based on content analysis\n- **📝 Multi-Flavor Support**: MDX, GFM, standard markdown, and frontmatter\n- **🎯 High Confidence**: Provides confidence scores and suggestions\n- **⚡ Performance**: Optimized for large content with efficient regex patterns\n- **🛡️ Edge Case Handling**: Robust detection with comprehensive test coverage\n- **🔧 Configurable**: Flexible for custom detection needs\n- **🪶 Lightweight**: No rendering or heavy dependencies\n\n## Installation\n\n```bash\nnpm install @bernierllc/markdown-detector\n```\n\n## Quick Start\n\n### Basic Usage\n\n```typescript\nimport { MarkdownDetector } from '@bernierllc/markdown-detector';\n\nconst content = `\n# My Document\n\nThis is **bold** and *italic* text.\n\n<MyComponent prop=\"value\" />\n`;\n\nconst result = MarkdownDetector.detect(content);\nconsole.log(result.flavor); // 'mdx'\nconsole.log(result.confidence); // 0.95\nconsole.log(result.suggestions); // [ ... ]\n```\n\n## API Reference\n\n### `MarkdownDetector.detect(content: string): DetectionResult`\n\nDetects the markdown flavor and extracts metadata.\n\n**Returns:**\n- `flavor`: 'mdx' | 'gfm' | 'standard' | 'markdown-with-frontmatter'\n- `confidence`: number (0.0 - 1.0)\n- `features`: detailed feature analysis\n- `suggestions`: helpful suggestions for processing\n\n### Types\n\n```typescript\nexport type MarkdownFlavor =\n  | 'auto'\n  | 'standard'\n  | 'gfm'\n  | 'mdx'\n  | 'markdown-with-frontmatter';\n\nexport interface DetectionResult {\n  flavor: MarkdownFlavor;\n  confidence: number;\n  features: {\n    hasFrontmatter: boolean;\n    hasJSX: boolean;\n    hasGFM: boolean;\n    hasCodeBlocks: boolean;\n    hasTables: boolean;\n    hasMath: boolean;\n    // ...more\n  };\n  suggestions: string[];\n}\n```\n\n## Detection Features\n\n- **MDX**: JSX tags, expressions, comments, fragments, import/export, hooks\n- **GFM**: Tables, strikethrough, task lists, autolinks, emoji, mentions, issues\n- **Frontmatter**: YAML at start, valid key-value pairs, arrays, nested objects\n- **Standard**: Headers, emphasis, lists, links, images, code blocks\n- **Edge Cases**: Handles code blocks, invalid frontmatter, HTML vs JSX, large content, unicode, special characters, conflicting features\n\n## Example: Detecting Uploaded Markdown\n\n```typescript\nimport { MarkdownDetector } from '@bernierllc/markdown-detector';\n\nfunction handleUpload(content: string) {\n  const detection = MarkdownDetector.detect(content);\n  // Store detection.flavor and detection.confidence as metadata\n  // Route or process content accordingly\n}\n```\n\n## Performance\n\n- **Regex optimization**: Efficient patterns\n- **Early termination**: Stops when confident\n- **Memory efficient**: Line-by-line processing\n\n## Testing\n\n```bash\nnpm test\nnpm run test:coverage\n```\n\n- **Unit tests**: All detection methods\n- **Integration tests**: Full detection pipeline\n- **Edge case tests**: Boundary and error cases\n- **Performance tests**: Large and complex content\n\n## License\n\nThis package is licensed under the Bernier LLC license. See LICENSE file for details. ","readmeFilename":"README.md"}