stackscan 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (369) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +222 -0
  3. package/dist/add.d.mts +3 -0
  4. package/dist/add.d.ts +3 -0
  5. package/dist/add.js +83 -0
  6. package/dist/add.mjs +7 -0
  7. package/dist/batch-import.d.mts +6 -0
  8. package/dist/batch-import.d.ts +6 -0
  9. package/dist/batch-import.js +5724 -0
  10. package/dist/batch-import.mjs +12 -0
  11. package/dist/chunk-22J2UHU7.mjs +1980 -0
  12. package/dist/chunk-2KG7JDHY.mjs +19 -0
  13. package/dist/chunk-2O2NMD7M.mjs +127 -0
  14. package/dist/chunk-3HEYJTUE.mjs +157 -0
  15. package/dist/chunk-3LPZV7KA.mjs +15 -0
  16. package/dist/chunk-3O2C34CJ.mjs +174 -0
  17. package/dist/chunk-3R4TXOZA.mjs +179 -0
  18. package/dist/chunk-3RJHZIII.mjs +174 -0
  19. package/dist/chunk-3XKWCBY6.mjs +105 -0
  20. package/dist/chunk-4OMBB3R6.mjs +52 -0
  21. package/dist/chunk-4THN5TT4.mjs +185 -0
  22. package/dist/chunk-4WCVZS6B.mjs +178 -0
  23. package/dist/chunk-5MNAT56X.mjs +23 -0
  24. package/dist/chunk-5VH7N3X6.mjs +109 -0
  25. package/dist/chunk-6A4WEZDZ.mjs +14 -0
  26. package/dist/chunk-6MIRBLO4.mjs +15 -0
  27. package/dist/chunk-6RCTNUF4.mjs +17 -0
  28. package/dist/chunk-7F4KWGMM.mjs +45 -0
  29. package/dist/chunk-7KF2HEU2.mjs +56 -0
  30. package/dist/chunk-7KONWCSX.mjs +15 -0
  31. package/dist/chunk-7TIXAYVC.mjs +10122 -0
  32. package/dist/chunk-ADMVFPX7.mjs +150 -0
  33. package/dist/chunk-AFJCX5SK.mjs +22 -0
  34. package/dist/chunk-ATNEVZPV.mjs +25 -0
  35. package/dist/chunk-BBP27ZGZ.mjs +4841 -0
  36. package/dist/chunk-BGT3PANW.mjs +64 -0
  37. package/dist/chunk-BJIQZNKU.mjs +184 -0
  38. package/dist/chunk-BKQW4ZNZ.mjs +19 -0
  39. package/dist/chunk-BMQTYZOD.mjs +144 -0
  40. package/dist/chunk-CZADURZD.mjs +674 -0
  41. package/dist/chunk-D2DOGM2Y.mjs +19 -0
  42. package/dist/chunk-D32C3FU6.mjs +45 -0
  43. package/dist/chunk-D6FFDX4P.mjs +158 -0
  44. package/dist/chunk-DUAFJVBN.mjs +44 -0
  45. package/dist/chunk-E24PAHCZ.mjs +146 -0
  46. package/dist/chunk-E3OD2BXY.mjs +14 -0
  47. package/dist/chunk-E4K5XYFI.mjs +210767 -0
  48. package/dist/chunk-EH2SEQZP.mjs +10119 -0
  49. package/dist/chunk-EH4FWTP5.mjs +21 -0
  50. package/dist/chunk-EOKQCSHI.mjs +10 -0
  51. package/dist/chunk-EQ4WRCPP.mjs +16 -0
  52. package/dist/chunk-EYXTSAAW.mjs +64 -0
  53. package/dist/chunk-F6Z4WXOF.mjs +146 -0
  54. package/dist/chunk-FM5BCBKT.mjs +77 -0
  55. package/dist/chunk-GXKIDBAX.mjs +146 -0
  56. package/dist/chunk-H6HA3IZE.mjs +1980 -0
  57. package/dist/chunk-H7WNQ3SS.mjs +23 -0
  58. package/dist/chunk-HBJEQ63D.mjs +205 -0
  59. package/dist/chunk-HTTDBNRT.mjs +146 -0
  60. package/dist/chunk-HYUKJUPF.mjs +177 -0
  61. package/dist/chunk-IFEEO473.mjs +49 -0
  62. package/dist/chunk-IILZ43EE.mjs +25 -0
  63. package/dist/chunk-ITGRHGUT.mjs +158 -0
  64. package/dist/chunk-J5JVDMED.mjs +45 -0
  65. package/dist/chunk-JH3SW4KH.mjs +4896 -0
  66. package/dist/chunk-JHVWSHNY.mjs +32 -0
  67. package/dist/chunk-JLFOQXQG.mjs +26 -0
  68. package/dist/chunk-K4BNSVJP.mjs +16 -0
  69. package/dist/chunk-KCDUZXVN.mjs +157 -0
  70. package/dist/chunk-KMDEPBKS.mjs +685 -0
  71. package/dist/chunk-L4AQWDD2.mjs +92 -0
  72. package/dist/chunk-L7I4UC35.mjs +158 -0
  73. package/dist/chunk-LB3L25FS.mjs +1980 -0
  74. package/dist/chunk-LDA354A3.mjs +158 -0
  75. package/dist/chunk-LSUI3VI4.mjs +19 -0
  76. package/dist/chunk-MB2X3DXF.mjs +45 -0
  77. package/dist/chunk-MBL4CIFG.mjs +28 -0
  78. package/dist/chunk-MLAUEAUQ.mjs +27 -0
  79. package/dist/chunk-NGEKE4DQ.mjs +23 -0
  80. package/dist/chunk-NJ4FK5BO.mjs +19 -0
  81. package/dist/chunk-OJZZPNXQ.mjs +1985 -0
  82. package/dist/chunk-P24PKCUA.mjs +25 -0
  83. package/dist/chunk-PFQIKEIL.mjs +15 -0
  84. package/dist/chunk-Q5ASM7HE.mjs +45 -0
  85. package/dist/chunk-Q7X2R7N7.mjs +16 -0
  86. package/dist/chunk-QAIJCQWH.mjs +157 -0
  87. package/dist/chunk-QQAUZGVG.mjs +2166 -0
  88. package/dist/chunk-QUIF3FJ2.mjs +55 -0
  89. package/dist/chunk-RDFZ4GVM.mjs +23 -0
  90. package/dist/chunk-RFRKMUNA.mjs +49 -0
  91. package/dist/chunk-RIIQA6S6.mjs +2204 -0
  92. package/dist/chunk-SGOSAU2P.mjs +51 -0
  93. package/dist/chunk-SLYSEMYE.mjs +21 -0
  94. package/dist/chunk-SNKLZ7VB.mjs +36 -0
  95. package/dist/chunk-TKKUEAN6.mjs +45 -0
  96. package/dist/chunk-TMH7EUXF.mjs +179 -0
  97. package/dist/chunk-TP55TF47.mjs +1980 -0
  98. package/dist/chunk-U4AFTAZI.mjs +1980 -0
  99. package/dist/chunk-U4EXCWGR.mjs +174 -0
  100. package/dist/chunk-U4OINWJM.mjs +42 -0
  101. package/dist/chunk-U63TGBAS.mjs +179 -0
  102. package/dist/chunk-UESFH6US.mjs +210773 -0
  103. package/dist/chunk-UITLHBZA.mjs +164 -0
  104. package/dist/chunk-VFD26CTJ.mjs +16 -0
  105. package/dist/chunk-VSWWWPO7.mjs +205 -0
  106. package/dist/chunk-VUVPGH7A.mjs +157 -0
  107. package/dist/chunk-W34IFT2J.mjs +45 -0
  108. package/dist/chunk-WPSGF5DK.mjs +92 -0
  109. package/dist/chunk-WPU2XV5B.mjs +25 -0
  110. package/dist/chunk-WTPR7TOE.mjs +146 -0
  111. package/dist/chunk-X3ATBJ5Q.mjs +14 -0
  112. package/dist/chunk-XMZATJRD.mjs +23 -0
  113. package/dist/chunk-Y2Y225MR.mjs +117 -0
  114. package/dist/chunk-YNDKJ5QJ.mjs +89 -0
  115. package/dist/chunk-YPQNYUP3.mjs +92 -0
  116. package/dist/chunk-ZH22D4SN.mjs +179 -0
  117. package/dist/chunk-ZSJJGBQR.mjs +39 -0
  118. package/dist/chunk-ZSMMBZHO.mjs +64 -0
  119. package/dist/chunk-ZTXCA3NN.mjs +74 -0
  120. package/dist/chunk-ZYMQR24Z.mjs +145 -0
  121. package/dist/cli.d.mts +1 -0
  122. package/dist/cli.d.ts +1 -0
  123. package/dist/cli.js +5770 -0
  124. package/dist/cli.mjs +25 -0
  125. package/dist/config.d.mts +5 -0
  126. package/dist/config.d.ts +5 -0
  127. package/dist/config.js +41 -0
  128. package/dist/config.mjs +7 -0
  129. package/dist/defaults.d.mts +3 -0
  130. package/dist/defaults.d.ts +3 -0
  131. package/dist/defaults.js +47 -0
  132. package/dist/defaults.mjs +7 -0
  133. package/dist/detectors/ci.d.mts +5 -0
  134. package/dist/detectors/ci.d.ts +5 -0
  135. package/dist/detectors/ci.js +59 -0
  136. package/dist/detectors/ci.mjs +7 -0
  137. package/dist/detectors/docker.d.mts +5 -0
  138. package/dist/detectors/docker.d.ts +5 -0
  139. package/dist/detectors/docker.js +50 -0
  140. package/dist/detectors/docker.mjs +7 -0
  141. package/dist/detectors/next.d.mts +7 -0
  142. package/dist/detectors/next.d.ts +7 -0
  143. package/dist/detectors/next.js +49 -0
  144. package/dist/detectors/next.mjs +7 -0
  145. package/dist/detectors/prisma.d.mts +7 -0
  146. package/dist/detectors/prisma.d.ts +7 -0
  147. package/dist/detectors/prisma.js +48 -0
  148. package/dist/detectors/prisma.mjs +7 -0
  149. package/dist/import.d.mts +2 -0
  150. package/dist/import.d.ts +2 -0
  151. package/dist/import.js +2062 -0
  152. package/dist/import.mjs +53 -0
  153. package/dist/output.d.mts +7 -0
  154. package/dist/output.d.ts +7 -0
  155. package/dist/output.js +3619 -0
  156. package/dist/output.mjs +13 -0
  157. package/dist/scan.d.mts +7 -0
  158. package/dist/scan.d.ts +7 -0
  159. package/dist/scan.js +5725 -0
  160. package/dist/scan.mjs +12 -0
  161. package/dist/scanner.d.mts +5 -0
  162. package/dist/scanner.d.ts +5 -0
  163. package/dist/scanner.js +5514 -0
  164. package/dist/scanner.mjs +14 -0
  165. package/dist/simple-icons-hex.d.mts +6751 -0
  166. package/dist/simple-icons-hex.d.ts +6751 -0
  167. package/dist/simple-icons-hex.js +10118 -0
  168. package/dist/simple-icons-hex.mjs +6736 -0
  169. package/dist/sync.d.mts +7 -0
  170. package/dist/sync.d.ts +7 -0
  171. package/dist/sync.js +5725 -0
  172. package/dist/sync.mjs +160 -0
  173. package/dist/techDefinitions.d.mts +5 -0
  174. package/dist/techDefinitions.d.ts +5 -0
  175. package/dist/techDefinitions.js +2004 -0
  176. package/dist/techDefinitions.mjs +7 -0
  177. package/dist/techMap.d.mts +5 -0
  178. package/dist/techMap.d.ts +5 -0
  179. package/dist/techMap.js +2018 -0
  180. package/dist/techMap.mjs +8 -0
  181. package/dist/types.d.mts +24 -0
  182. package/dist/types.d.ts +24 -0
  183. package/dist/types.js +18 -0
  184. package/dist/types.mjs +1 -0
  185. package/dist/typescript-7Q5RIVZY.mjs +6 -0
  186. package/dist/typescript-T5HXSZZS.mjs +5 -0
  187. package/dist/watch.d.mts +3 -0
  188. package/dist/watch.d.ts +3 -0
  189. package/dist/watch.js +2122 -0
  190. package/dist/watch.mjs +13 -0
  191. package/package.json +57 -0
  192. package/public/assets/logos/ai/huggingface.svg +1 -0
  193. package/public/assets/logos/ai/langchain.svg +1 -0
  194. package/public/assets/logos/ai/openai.svg +1 -0
  195. package/public/assets/logos/ai/replicate.svg +1 -0
  196. package/public/assets/logos/ai/tensorflow.svg +1 -0
  197. package/public/assets/logos/api/apollographql.svg +1 -0
  198. package/public/assets/logos/api/graphql.svg +1 -0
  199. package/public/assets/logos/api/relay.svg +1 -0
  200. package/public/assets/logos/api/trpc.svg +1 -0
  201. package/public/assets/logos/auth/argo.svg +1 -0
  202. package/public/assets/logos/auth/auth0.svg +1 -0
  203. package/public/assets/logos/auth/authjs.svg +73 -0
  204. package/public/assets/logos/auth/clerk.svg +1 -0
  205. package/public/assets/logos/auth/firebase.svg +1 -0
  206. package/public/assets/logos/auth/jsonwebtokens.svg +1 -0
  207. package/public/assets/logos/auth/keycloak.svg +1 -0
  208. package/public/assets/logos/auth/passport.svg +1 -0
  209. package/public/assets/logos/automation/lerna.svg +1 -0
  210. package/public/assets/logos/automation/nx.svg +1 -0
  211. package/public/assets/logos/automation/turborepo.svg +1 -0
  212. package/public/assets/logos/backend/adonisjs.svg +1 -0
  213. package/public/assets/logos/backend/express.svg +1 -0
  214. package/public/assets/logos/backend/fastify.svg +1 -0
  215. package/public/assets/logos/backend/koa.svg +1 -0
  216. package/public/assets/logos/backend/nestjs.svg +1 -0
  217. package/public/assets/logos/build/babel.svg +1 -0
  218. package/public/assets/logos/build/esbuild.svg +1 -0
  219. package/public/assets/logos/build/rollupdotjs.svg +1 -0
  220. package/public/assets/logos/build/snowpack.svg +1 -0
  221. package/public/assets/logos/build/swc.svg +1 -0
  222. package/public/assets/logos/build/vite.svg +15 -0
  223. package/public/assets/logos/build/webpack.svg +1 -0
  224. package/public/assets/logos/ci/circleci.svg +1 -0
  225. package/public/assets/logos/ci/githubactions.svg +1 -0
  226. package/public/assets/logos/ci/gitlab.svg +1 -0
  227. package/public/assets/logos/ci/jenkins.svg +1 -0
  228. package/public/assets/logos/ci/travisci.svg +1 -0
  229. package/public/assets/logos/cloud/cloudflare.svg +1 -0
  230. package/public/assets/logos/cloud/googlecloud.svg +1 -0
  231. package/public/assets/logos/cloud/microsoftazure.svg +1 -0
  232. package/public/assets/logos/cms/contentful.svg +1 -0
  233. package/public/assets/logos/cms/directus.svg +1 -0
  234. package/public/assets/logos/cms/ghost.svg +1 -0
  235. package/public/assets/logos/cms/keystone.svg +1 -0
  236. package/public/assets/logos/cms/sanity.svg +1 -0
  237. package/public/assets/logos/cms/shopify.svg +1 -0
  238. package/public/assets/logos/cms/strapi.svg +1 -0
  239. package/public/assets/logos/cms/wordpress.svg +1 -0
  240. package/public/assets/logos/container/docker.svg +1 -0
  241. package/public/assets/logos/container/kubernetes.svg +1 -0
  242. package/public/assets/logos/css/antdesign.svg +1 -0
  243. package/public/assets/logos/css/bootstrap.svg +1 -0
  244. package/public/assets/logos/css/bulma.svg +1 -0
  245. package/public/assets/logos/css/chakraui.svg +1 -0
  246. package/public/assets/logos/css/daisyui.svg +1 -0
  247. package/public/assets/logos/css/fallback/mantine-logo.svg +1 -0
  248. package/public/assets/logos/css/fallback/shadcnui.svg +1 -0
  249. package/public/assets/logos/css/foundation.svg +1 -0
  250. package/public/assets/logos/css/headlessui.svg +1 -0
  251. package/public/assets/logos/css/less.svg +1 -0
  252. package/public/assets/logos/css/mui.svg +1 -0
  253. package/public/assets/logos/css/postcss.svg +1 -0
  254. package/public/assets/logos/css/radixui.svg +1 -0
  255. package/public/assets/logos/css/sass.svg +1 -0
  256. package/public/assets/logos/css/shadcnui.svg +1 -0
  257. package/public/assets/logos/css/styledcomponents.svg +1 -0
  258. package/public/assets/logos/css/tailwindcss.svg +1 -0
  259. package/public/assets/logos/database/amazondynamodb.svg +1 -0
  260. package/public/assets/logos/database/apachecassandra.svg +1 -0
  261. package/public/assets/logos/database/cockroachlabs.svg +1 -0
  262. package/public/assets/logos/database/duckdb.svg +1 -0
  263. package/public/assets/logos/database/elasticsearch.svg +1 -0
  264. package/public/assets/logos/database/fauna.svg +3 -0
  265. package/public/assets/logos/database/mariadb.svg +1 -0
  266. package/public/assets/logos/database/mongodb.svg +1 -0
  267. package/public/assets/logos/database/mysql.svg +1 -0
  268. package/public/assets/logos/database/planetscale.svg +1 -0
  269. package/public/assets/logos/database/postgresql.svg +1 -0
  270. package/public/assets/logos/database/redis.svg +1 -0
  271. package/public/assets/logos/database/sqlite.svg +1 -0
  272. package/public/assets/logos/database/supabase.svg +1 -0
  273. package/public/assets/logos/database/surrealdb.svg +1 -0
  274. package/public/assets/logos/devops/ansible.svg +1 -0
  275. package/public/assets/logos/devops/pulumi.svg +1 -0
  276. package/public/assets/logos/devops/serverless.svg +1 -0
  277. package/public/assets/logos/devops/terraform.svg +1 -0
  278. package/public/assets/logos/fallback/31557565.svg +32 -0
  279. package/public/assets/logos/fallback/Drizzle--Streamline-Simple-Icons.svg +7 -0
  280. package/public/assets/logos/fallback/changesets.svg +43 -0
  281. package/public/assets/logos/fallback/lemonsqueezy.svg +8 -0
  282. package/public/assets/logos/fallback/mantine-logo.svg +1 -0
  283. package/public/assets/logos/fallback/reactquery.svg +12 -0
  284. package/public/assets/logos/fallback/shadcnui.svg +21 -0
  285. package/public/assets/logos/fallback/stitches.svg +10 -0
  286. package/public/assets/logos/format/prettier.svg +1 -0
  287. package/public/assets/logos/frontend/alpinedotjs.svg +1 -0
  288. package/public/assets/logos/frontend/angular.svg +1 -0
  289. package/public/assets/logos/frontend/astro.svg +1 -0
  290. package/public/assets/logos/frontend/backbone.svg +1 -0
  291. package/public/assets/logos/frontend/emberdotjs.svg +1 -0
  292. package/public/assets/logos/frontend/htmx.svg +1 -0
  293. package/public/assets/logos/frontend/lit.svg +1 -0
  294. package/public/assets/logos/frontend/nextdotjs.svg +1 -0
  295. package/public/assets/logos/frontend/nuxt.svg +1 -0
  296. package/public/assets/logos/frontend/preact.svg +1 -0
  297. package/public/assets/logos/frontend/qwik.svg +1 -0
  298. package/public/assets/logos/frontend/react.svg +1 -0
  299. package/public/assets/logos/frontend/remix.svg +1 -0
  300. package/public/assets/logos/frontend/solid.svg +1 -0
  301. package/public/assets/logos/frontend/svelte.svg +1 -0
  302. package/public/assets/logos/frontend/vuedotjs.svg +1 -0
  303. package/public/assets/logos/hosting/netlify.svg +1 -0
  304. package/public/assets/logos/hosting/railway.svg +1 -0
  305. package/public/assets/logos/hosting/render.svg +1 -0
  306. package/public/assets/logos/hosting/vercel.svg +1 -0
  307. package/public/assets/logos/language/csharp.svg +1 -0
  308. package/public/assets/logos/language/go.svg +1 -0
  309. package/public/assets/logos/language/javascript.svg +1 -0
  310. package/public/assets/logos/language/openjdk.svg +1 -0
  311. package/public/assets/logos/language/php.svg +1 -0
  312. package/public/assets/logos/language/python.svg +1 -0
  313. package/public/assets/logos/language/ruby.svg +1 -0
  314. package/public/assets/logos/language/rust.svg +1 -0
  315. package/public/assets/logos/language/typescript.svg +1 -0
  316. package/public/assets/logos/lint/commitlint.svg +1 -0
  317. package/public/assets/logos/lint/eslint.svg +1 -0
  318. package/public/assets/logos/lint/husky.svg +3 -0
  319. package/public/assets/logos/lint/lintstaged.svg +3 -0
  320. package/public/assets/logos/mobile/capacitor.svg +1 -0
  321. package/public/assets/logos/mobile/expo.svg +1 -0
  322. package/public/assets/logos/mobile/flutter.svg +1 -0
  323. package/public/assets/logos/mobile/ionic.svg +1 -0
  324. package/public/assets/logos/mobile/react.svg +1 -0
  325. package/public/assets/logos/network/axios.svg +1 -0
  326. package/public/assets/logos/network/brandfetch.svg +1 -0
  327. package/public/assets/logos/network/grpc.svg +1 -0
  328. package/public/assets/logos/network/openapiinitiative.svg +1 -0
  329. package/public/assets/logos/network/swr.svg +1 -0
  330. package/public/assets/logos/orm/drizzle.svg +1 -0
  331. package/public/assets/logos/orm/mongoose.svg +1 -0
  332. package/public/assets/logos/orm/prisma.svg +1 -0
  333. package/public/assets/logos/orm/typeorm.svg +1 -0
  334. package/public/assets/logos/package/npm.svg +1 -0
  335. package/public/assets/logos/package/pnpm.svg +1 -0
  336. package/public/assets/logos/package/yarn.svg +1 -0
  337. package/public/assets/logos/payment/fallback/lemonsqueezy.svg +1 -0
  338. package/public/assets/logos/payment/paypal.svg +1 -0
  339. package/public/assets/logos/payment/stripe.svg +1 -0
  340. package/public/assets/logos/runtime/bun.svg +1 -0
  341. package/public/assets/logos/runtime/deno.svg +1 -0
  342. package/public/assets/logos/ssg/eleventy.svg +1 -0
  343. package/public/assets/logos/ssg/gatsby.svg +1 -0
  344. package/public/assets/logos/ssg/hugo.svg +1 -0
  345. package/public/assets/logos/ssg/jekyll.svg +1 -0
  346. package/public/assets/logos/state/mobx.svg +1 -0
  347. package/public/assets/logos/state/recoil.svg +1 -0
  348. package/public/assets/logos/state/redux.svg +1 -0
  349. package/public/assets/logos/state/xstate.svg +1 -0
  350. package/public/assets/logos/state/zustand.svg +1 -0
  351. package/public/assets/logos/testing/chai.svg +1 -0
  352. package/public/assets/logos/testing/cypress.svg +1 -0
  353. package/public/assets/logos/testing/jasmine.svg +1 -0
  354. package/public/assets/logos/testing/jest.svg +1 -0
  355. package/public/assets/logos/testing/mocha.svg +1 -0
  356. package/public/assets/logos/testing/playwright.svg +1 -0
  357. package/public/assets/logos/testing/puppeteer.svg +1 -0
  358. package/public/assets/logos/testing/storybook.svg +1 -0
  359. package/public/assets/logos/testing/testinglibrary.svg +1 -0
  360. package/public/assets/logos/testing/vitest.svg +1 -0
  361. package/public/assets/logos/utility/d3.svg +1 -0
  362. package/public/assets/logos/utility/leaflet.svg +1 -0
  363. package/public/assets/logos/utility/lodash.svg +1 -0
  364. package/public/assets/logos/utility/pyup.svg +1 -0
  365. package/public/assets/logos/utility/reactivex.svg +1 -0
  366. package/public/assets/logos/utility/threedotjs.svg +1 -0
  367. package/public/assets/logos/utility/zod.svg +1 -0
  368. package/public/stackscan-white.svg +26 -0
  369. package/public/stackscan.svg +26 -0
@@ -0,0 +1,685 @@
1
+ import {
2
+ DEFAULT_CATEGORY_ICONS
3
+ } from "./chunk-MBL4CIFG.mjs";
4
+ import {
5
+ require_lib
6
+ } from "./chunk-RIIQA6S6.mjs";
7
+ import {
8
+ simple_icons_hex_default
9
+ } from "./chunk-7TIXAYVC.mjs";
10
+ import {
11
+ __dirname,
12
+ init_esm_shims
13
+ } from "./chunk-RDFZ4GVM.mjs";
14
+ import {
15
+ __toESM
16
+ } from "./chunk-7KF2HEU2.mjs";
17
+
18
+ // src/output.ts
19
+ init_esm_shims();
20
+ var import_fs_extra = __toESM(require_lib());
21
+ import path from "path";
22
+
23
+ // node_modules/chalk/source/index.js
24
+ init_esm_shims();
25
+
26
+ // node_modules/chalk/source/vendor/ansi-styles/index.js
27
+ init_esm_shims();
28
+ var ANSI_BACKGROUND_OFFSET = 10;
29
+ var wrapAnsi16 = (offset = 0) => (code) => `\x1B[${code + offset}m`;
30
+ var wrapAnsi256 = (offset = 0) => (code) => `\x1B[${38 + offset};5;${code}m`;
31
+ var wrapAnsi16m = (offset = 0) => (red, green, blue) => `\x1B[${38 + offset};2;${red};${green};${blue}m`;
32
+ var styles = {
33
+ modifier: {
34
+ reset: [0, 0],
35
+ // 21 isn't widely supported and 22 does the same thing
36
+ bold: [1, 22],
37
+ dim: [2, 22],
38
+ italic: [3, 23],
39
+ underline: [4, 24],
40
+ overline: [53, 55],
41
+ inverse: [7, 27],
42
+ hidden: [8, 28],
43
+ strikethrough: [9, 29]
44
+ },
45
+ color: {
46
+ black: [30, 39],
47
+ red: [31, 39],
48
+ green: [32, 39],
49
+ yellow: [33, 39],
50
+ blue: [34, 39],
51
+ magenta: [35, 39],
52
+ cyan: [36, 39],
53
+ white: [37, 39],
54
+ // Bright color
55
+ blackBright: [90, 39],
56
+ gray: [90, 39],
57
+ // Alias of `blackBright`
58
+ grey: [90, 39],
59
+ // Alias of `blackBright`
60
+ redBright: [91, 39],
61
+ greenBright: [92, 39],
62
+ yellowBright: [93, 39],
63
+ blueBright: [94, 39],
64
+ magentaBright: [95, 39],
65
+ cyanBright: [96, 39],
66
+ whiteBright: [97, 39]
67
+ },
68
+ bgColor: {
69
+ bgBlack: [40, 49],
70
+ bgRed: [41, 49],
71
+ bgGreen: [42, 49],
72
+ bgYellow: [43, 49],
73
+ bgBlue: [44, 49],
74
+ bgMagenta: [45, 49],
75
+ bgCyan: [46, 49],
76
+ bgWhite: [47, 49],
77
+ // Bright color
78
+ bgBlackBright: [100, 49],
79
+ bgGray: [100, 49],
80
+ // Alias of `bgBlackBright`
81
+ bgGrey: [100, 49],
82
+ // Alias of `bgBlackBright`
83
+ bgRedBright: [101, 49],
84
+ bgGreenBright: [102, 49],
85
+ bgYellowBright: [103, 49],
86
+ bgBlueBright: [104, 49],
87
+ bgMagentaBright: [105, 49],
88
+ bgCyanBright: [106, 49],
89
+ bgWhiteBright: [107, 49]
90
+ }
91
+ };
92
+ var modifierNames = Object.keys(styles.modifier);
93
+ var foregroundColorNames = Object.keys(styles.color);
94
+ var backgroundColorNames = Object.keys(styles.bgColor);
95
+ var colorNames = [...foregroundColorNames, ...backgroundColorNames];
96
+ function assembleStyles() {
97
+ const codes = /* @__PURE__ */ new Map();
98
+ for (const [groupName, group] of Object.entries(styles)) {
99
+ for (const [styleName, style] of Object.entries(group)) {
100
+ styles[styleName] = {
101
+ open: `\x1B[${style[0]}m`,
102
+ close: `\x1B[${style[1]}m`
103
+ };
104
+ group[styleName] = styles[styleName];
105
+ codes.set(style[0], style[1]);
106
+ }
107
+ Object.defineProperty(styles, groupName, {
108
+ value: group,
109
+ enumerable: false
110
+ });
111
+ }
112
+ Object.defineProperty(styles, "codes", {
113
+ value: codes,
114
+ enumerable: false
115
+ });
116
+ styles.color.close = "\x1B[39m";
117
+ styles.bgColor.close = "\x1B[49m";
118
+ styles.color.ansi = wrapAnsi16();
119
+ styles.color.ansi256 = wrapAnsi256();
120
+ styles.color.ansi16m = wrapAnsi16m();
121
+ styles.bgColor.ansi = wrapAnsi16(ANSI_BACKGROUND_OFFSET);
122
+ styles.bgColor.ansi256 = wrapAnsi256(ANSI_BACKGROUND_OFFSET);
123
+ styles.bgColor.ansi16m = wrapAnsi16m(ANSI_BACKGROUND_OFFSET);
124
+ Object.defineProperties(styles, {
125
+ rgbToAnsi256: {
126
+ value(red, green, blue) {
127
+ if (red === green && green === blue) {
128
+ if (red < 8) {
129
+ return 16;
130
+ }
131
+ if (red > 248) {
132
+ return 231;
133
+ }
134
+ return Math.round((red - 8) / 247 * 24) + 232;
135
+ }
136
+ return 16 + 36 * Math.round(red / 255 * 5) + 6 * Math.round(green / 255 * 5) + Math.round(blue / 255 * 5);
137
+ },
138
+ enumerable: false
139
+ },
140
+ hexToRgb: {
141
+ value(hex) {
142
+ const matches = /[a-f\d]{6}|[a-f\d]{3}/i.exec(hex.toString(16));
143
+ if (!matches) {
144
+ return [0, 0, 0];
145
+ }
146
+ let [colorString] = matches;
147
+ if (colorString.length === 3) {
148
+ colorString = [...colorString].map((character) => character + character).join("");
149
+ }
150
+ const integer = Number.parseInt(colorString, 16);
151
+ return [
152
+ /* eslint-disable no-bitwise */
153
+ integer >> 16 & 255,
154
+ integer >> 8 & 255,
155
+ integer & 255
156
+ /* eslint-enable no-bitwise */
157
+ ];
158
+ },
159
+ enumerable: false
160
+ },
161
+ hexToAnsi256: {
162
+ value: (hex) => styles.rgbToAnsi256(...styles.hexToRgb(hex)),
163
+ enumerable: false
164
+ },
165
+ ansi256ToAnsi: {
166
+ value(code) {
167
+ if (code < 8) {
168
+ return 30 + code;
169
+ }
170
+ if (code < 16) {
171
+ return 90 + (code - 8);
172
+ }
173
+ let red;
174
+ let green;
175
+ let blue;
176
+ if (code >= 232) {
177
+ red = ((code - 232) * 10 + 8) / 255;
178
+ green = red;
179
+ blue = red;
180
+ } else {
181
+ code -= 16;
182
+ const remainder = code % 36;
183
+ red = Math.floor(code / 36) / 5;
184
+ green = Math.floor(remainder / 6) / 5;
185
+ blue = remainder % 6 / 5;
186
+ }
187
+ const value = Math.max(red, green, blue) * 2;
188
+ if (value === 0) {
189
+ return 30;
190
+ }
191
+ let result = 30 + (Math.round(blue) << 2 | Math.round(green) << 1 | Math.round(red));
192
+ if (value === 2) {
193
+ result += 60;
194
+ }
195
+ return result;
196
+ },
197
+ enumerable: false
198
+ },
199
+ rgbToAnsi: {
200
+ value: (red, green, blue) => styles.ansi256ToAnsi(styles.rgbToAnsi256(red, green, blue)),
201
+ enumerable: false
202
+ },
203
+ hexToAnsi: {
204
+ value: (hex) => styles.ansi256ToAnsi(styles.hexToAnsi256(hex)),
205
+ enumerable: false
206
+ }
207
+ });
208
+ return styles;
209
+ }
210
+ var ansiStyles = assembleStyles();
211
+ var ansi_styles_default = ansiStyles;
212
+
213
+ // node_modules/chalk/source/vendor/supports-color/index.js
214
+ init_esm_shims();
215
+ import process from "process";
216
+ import os from "os";
217
+ import tty from "tty";
218
+ function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : process.argv) {
219
+ const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
220
+ const position = argv.indexOf(prefix + flag);
221
+ const terminatorPosition = argv.indexOf("--");
222
+ return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
223
+ }
224
+ var { env } = process;
225
+ var flagForceColor;
226
+ if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
227
+ flagForceColor = 0;
228
+ } else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
229
+ flagForceColor = 1;
230
+ }
231
+ function envForceColor() {
232
+ if ("FORCE_COLOR" in env) {
233
+ if (env.FORCE_COLOR === "true") {
234
+ return 1;
235
+ }
236
+ if (env.FORCE_COLOR === "false") {
237
+ return 0;
238
+ }
239
+ return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
240
+ }
241
+ }
242
+ function translateLevel(level) {
243
+ if (level === 0) {
244
+ return false;
245
+ }
246
+ return {
247
+ level,
248
+ hasBasic: true,
249
+ has256: level >= 2,
250
+ has16m: level >= 3
251
+ };
252
+ }
253
+ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
254
+ const noFlagForceColor = envForceColor();
255
+ if (noFlagForceColor !== void 0) {
256
+ flagForceColor = noFlagForceColor;
257
+ }
258
+ const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
259
+ if (forceColor === 0) {
260
+ return 0;
261
+ }
262
+ if (sniffFlags) {
263
+ if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
264
+ return 3;
265
+ }
266
+ if (hasFlag("color=256")) {
267
+ return 2;
268
+ }
269
+ }
270
+ if ("TF_BUILD" in env && "AGENT_NAME" in env) {
271
+ return 1;
272
+ }
273
+ if (haveStream && !streamIsTTY && forceColor === void 0) {
274
+ return 0;
275
+ }
276
+ const min = forceColor || 0;
277
+ if (env.TERM === "dumb") {
278
+ return min;
279
+ }
280
+ if (process.platform === "win32") {
281
+ const osRelease = os.release().split(".");
282
+ if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
283
+ return Number(osRelease[2]) >= 14931 ? 3 : 2;
284
+ }
285
+ return 1;
286
+ }
287
+ if ("CI" in env) {
288
+ if (["GITHUB_ACTIONS", "GITEA_ACTIONS", "CIRCLECI"].some((key) => key in env)) {
289
+ return 3;
290
+ }
291
+ if (["TRAVIS", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
292
+ return 1;
293
+ }
294
+ return min;
295
+ }
296
+ if ("TEAMCITY_VERSION" in env) {
297
+ return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
298
+ }
299
+ if (env.COLORTERM === "truecolor") {
300
+ return 3;
301
+ }
302
+ if (env.TERM === "xterm-kitty") {
303
+ return 3;
304
+ }
305
+ if (env.TERM === "xterm-ghostty") {
306
+ return 3;
307
+ }
308
+ if (env.TERM === "wezterm") {
309
+ return 3;
310
+ }
311
+ if ("TERM_PROGRAM" in env) {
312
+ const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
313
+ switch (env.TERM_PROGRAM) {
314
+ case "iTerm.app": {
315
+ return version >= 3 ? 3 : 2;
316
+ }
317
+ case "Apple_Terminal": {
318
+ return 2;
319
+ }
320
+ }
321
+ }
322
+ if (/-256(color)?$/i.test(env.TERM)) {
323
+ return 2;
324
+ }
325
+ if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
326
+ return 1;
327
+ }
328
+ if ("COLORTERM" in env) {
329
+ return 1;
330
+ }
331
+ return min;
332
+ }
333
+ function createSupportsColor(stream, options = {}) {
334
+ const level = _supportsColor(stream, {
335
+ streamIsTTY: stream && stream.isTTY,
336
+ ...options
337
+ });
338
+ return translateLevel(level);
339
+ }
340
+ var supportsColor = {
341
+ stdout: createSupportsColor({ isTTY: tty.isatty(1) }),
342
+ stderr: createSupportsColor({ isTTY: tty.isatty(2) })
343
+ };
344
+ var supports_color_default = supportsColor;
345
+
346
+ // node_modules/chalk/source/utilities.js
347
+ init_esm_shims();
348
+ function stringReplaceAll(string, substring, replacer) {
349
+ let index = string.indexOf(substring);
350
+ if (index === -1) {
351
+ return string;
352
+ }
353
+ const substringLength = substring.length;
354
+ let endIndex = 0;
355
+ let returnValue = "";
356
+ do {
357
+ returnValue += string.slice(endIndex, index) + substring + replacer;
358
+ endIndex = index + substringLength;
359
+ index = string.indexOf(substring, endIndex);
360
+ } while (index !== -1);
361
+ returnValue += string.slice(endIndex);
362
+ return returnValue;
363
+ }
364
+ function stringEncaseCRLFWithFirstIndex(string, prefix, postfix, index) {
365
+ let endIndex = 0;
366
+ let returnValue = "";
367
+ do {
368
+ const gotCR = string[index - 1] === "\r";
369
+ returnValue += string.slice(endIndex, gotCR ? index - 1 : index) + prefix + (gotCR ? "\r\n" : "\n") + postfix;
370
+ endIndex = index + 1;
371
+ index = string.indexOf("\n", endIndex);
372
+ } while (index !== -1);
373
+ returnValue += string.slice(endIndex);
374
+ return returnValue;
375
+ }
376
+
377
+ // node_modules/chalk/source/index.js
378
+ var { stdout: stdoutColor, stderr: stderrColor } = supports_color_default;
379
+ var GENERATOR = Symbol("GENERATOR");
380
+ var STYLER = Symbol("STYLER");
381
+ var IS_EMPTY = Symbol("IS_EMPTY");
382
+ var levelMapping = [
383
+ "ansi",
384
+ "ansi",
385
+ "ansi256",
386
+ "ansi16m"
387
+ ];
388
+ var styles2 = /* @__PURE__ */ Object.create(null);
389
+ var applyOptions = (object, options = {}) => {
390
+ if (options.level && !(Number.isInteger(options.level) && options.level >= 0 && options.level <= 3)) {
391
+ throw new Error("The `level` option should be an integer from 0 to 3");
392
+ }
393
+ const colorLevel = stdoutColor ? stdoutColor.level : 0;
394
+ object.level = options.level === void 0 ? colorLevel : options.level;
395
+ };
396
+ var chalkFactory = (options) => {
397
+ const chalk2 = (...strings) => strings.join(" ");
398
+ applyOptions(chalk2, options);
399
+ Object.setPrototypeOf(chalk2, createChalk.prototype);
400
+ return chalk2;
401
+ };
402
+ function createChalk(options) {
403
+ return chalkFactory(options);
404
+ }
405
+ Object.setPrototypeOf(createChalk.prototype, Function.prototype);
406
+ for (const [styleName, style] of Object.entries(ansi_styles_default)) {
407
+ styles2[styleName] = {
408
+ get() {
409
+ const builder = createBuilder(this, createStyler(style.open, style.close, this[STYLER]), this[IS_EMPTY]);
410
+ Object.defineProperty(this, styleName, { value: builder });
411
+ return builder;
412
+ }
413
+ };
414
+ }
415
+ styles2.visible = {
416
+ get() {
417
+ const builder = createBuilder(this, this[STYLER], true);
418
+ Object.defineProperty(this, "visible", { value: builder });
419
+ return builder;
420
+ }
421
+ };
422
+ var getModelAnsi = (model, level, type, ...arguments_) => {
423
+ if (model === "rgb") {
424
+ if (level === "ansi16m") {
425
+ return ansi_styles_default[type].ansi16m(...arguments_);
426
+ }
427
+ if (level === "ansi256") {
428
+ return ansi_styles_default[type].ansi256(ansi_styles_default.rgbToAnsi256(...arguments_));
429
+ }
430
+ return ansi_styles_default[type].ansi(ansi_styles_default.rgbToAnsi(...arguments_));
431
+ }
432
+ if (model === "hex") {
433
+ return getModelAnsi("rgb", level, type, ...ansi_styles_default.hexToRgb(...arguments_));
434
+ }
435
+ return ansi_styles_default[type][model](...arguments_);
436
+ };
437
+ var usedModels = ["rgb", "hex", "ansi256"];
438
+ for (const model of usedModels) {
439
+ styles2[model] = {
440
+ get() {
441
+ const { level } = this;
442
+ return function(...arguments_) {
443
+ const styler = createStyler(getModelAnsi(model, levelMapping[level], "color", ...arguments_), ansi_styles_default.color.close, this[STYLER]);
444
+ return createBuilder(this, styler, this[IS_EMPTY]);
445
+ };
446
+ }
447
+ };
448
+ const bgModel = "bg" + model[0].toUpperCase() + model.slice(1);
449
+ styles2[bgModel] = {
450
+ get() {
451
+ const { level } = this;
452
+ return function(...arguments_) {
453
+ const styler = createStyler(getModelAnsi(model, levelMapping[level], "bgColor", ...arguments_), ansi_styles_default.bgColor.close, this[STYLER]);
454
+ return createBuilder(this, styler, this[IS_EMPTY]);
455
+ };
456
+ }
457
+ };
458
+ }
459
+ var proto = Object.defineProperties(() => {
460
+ }, {
461
+ ...styles2,
462
+ level: {
463
+ enumerable: true,
464
+ get() {
465
+ return this[GENERATOR].level;
466
+ },
467
+ set(level) {
468
+ this[GENERATOR].level = level;
469
+ }
470
+ }
471
+ });
472
+ var createStyler = (open, close, parent) => {
473
+ let openAll;
474
+ let closeAll;
475
+ if (parent === void 0) {
476
+ openAll = open;
477
+ closeAll = close;
478
+ } else {
479
+ openAll = parent.openAll + open;
480
+ closeAll = close + parent.closeAll;
481
+ }
482
+ return {
483
+ open,
484
+ close,
485
+ openAll,
486
+ closeAll,
487
+ parent
488
+ };
489
+ };
490
+ var createBuilder = (self, _styler, _isEmpty) => {
491
+ const builder = (...arguments_) => applyStyle(builder, arguments_.length === 1 ? "" + arguments_[0] : arguments_.join(" "));
492
+ Object.setPrototypeOf(builder, proto);
493
+ builder[GENERATOR] = self;
494
+ builder[STYLER] = _styler;
495
+ builder[IS_EMPTY] = _isEmpty;
496
+ return builder;
497
+ };
498
+ var applyStyle = (self, string) => {
499
+ if (self.level <= 0 || !string) {
500
+ return self[IS_EMPTY] ? "" : string;
501
+ }
502
+ let styler = self[STYLER];
503
+ if (styler === void 0) {
504
+ return string;
505
+ }
506
+ const { openAll, closeAll } = styler;
507
+ if (string.includes("\x1B")) {
508
+ while (styler !== void 0) {
509
+ string = stringReplaceAll(string, styler.close, styler.open);
510
+ styler = styler.parent;
511
+ }
512
+ }
513
+ const lfIndex = string.indexOf("\n");
514
+ if (lfIndex !== -1) {
515
+ string = stringEncaseCRLFWithFirstIndex(string, closeAll, openAll, lfIndex);
516
+ }
517
+ return openAll + string + closeAll;
518
+ };
519
+ Object.defineProperties(createChalk.prototype, styles2);
520
+ var chalk = createChalk();
521
+ var chalkStderr = createChalk({ level: stderrColor ? stderrColor.level : 0 });
522
+ var source_default = chalk;
523
+
524
+ // src/output.ts
525
+ import { createRequire } from "module";
526
+ var require2 = createRequire(import.meta.url);
527
+ async function writeOutput(outPath, techs, config, format = "json", assetsOutPath) {
528
+ const outDirectory = path.dirname(outPath);
529
+ await import_fs_extra.default.ensureDir(outDirectory);
530
+ let availableLogos = /* @__PURE__ */ new Set();
531
+ if (assetsOutPath) {
532
+ availableLogos = await copyAssets(techs, assetsOutPath, config);
533
+ }
534
+ if (format === "json") {
535
+ await import_fs_extra.default.writeJSON(
536
+ outPath,
537
+ {
538
+ generatedAt: (/* @__PURE__ */ new Date()).toISOString(),
539
+ tech: techs
540
+ },
541
+ { spaces: 2 }
542
+ );
543
+ console.log(source_default.blue(`\u2192 Saved ${techs.length} tech entries to ${outPath}`));
544
+ } else if (format === "markdown") {
545
+ const relativeAssetsPath = assetsOutPath ? path.relative(outDirectory, assetsOutPath).replace(/\\/g, "/") : void 0;
546
+ const mdContent = generateMarkdown(techs, relativeAssetsPath, availableLogos);
547
+ const mdPath = outPath.endsWith(".json") ? outPath.replace(/\.json$/, ".md") : outPath;
548
+ await import_fs_extra.default.writeFile(mdPath, mdContent);
549
+ console.log(source_default.blue(`\u2192 Saved markdown to ${mdPath}`));
550
+ }
551
+ }
552
+ async function copyAssets(techs, dest, config) {
553
+ const srcDir = path.resolve(__dirname, "../assets/logos");
554
+ let lucideDir;
555
+ try {
556
+ lucideDir = path.join(path.dirname(require2.resolve("lucide-static/package.json")), "icons");
557
+ } catch (e) {
558
+ lucideDir = path.resolve(__dirname, "../node_modules/lucide-static/icons");
559
+ }
560
+ const copied = /* @__PURE__ */ new Set();
561
+ let count = 0;
562
+ for (const t of techs) {
563
+ let srcFile = t.logo ? path.join(srcDir, t.logo) : null;
564
+ let destFile = t.logo ? path.join(dest, t.logo) : null;
565
+ let isDefault = false;
566
+ if (!srcFile || !await import_fs_extra.default.pathExists(srcFile)) {
567
+ const defaultIconName = DEFAULT_CATEGORY_ICONS[t.type];
568
+ if (defaultIconName) {
569
+ const lucideFile = path.join(lucideDir, `${defaultIconName}.svg`);
570
+ if (await import_fs_extra.default.pathExists(lucideFile)) {
571
+ srcFile = lucideFile;
572
+ const newLogoPath = `defaults/${defaultIconName}.svg`;
573
+ destFile = path.join(dest, newLogoPath);
574
+ t.logo = newLogoPath;
575
+ isDefault = true;
576
+ }
577
+ }
578
+ }
579
+ if (srcFile && destFile && await import_fs_extra.default.pathExists(srcFile)) {
580
+ await import_fs_extra.default.ensureDir(path.dirname(destFile));
581
+ let svgContent = await import_fs_extra.default.readFile(srcFile, "utf8");
582
+ let color;
583
+ if (config.iconColors && config.iconColors[t.name]) {
584
+ color = config.iconColors[t.name];
585
+ } else if (config.colorMode === "white") {
586
+ color = "#FFFFFF";
587
+ } else if (config.colorMode === "black") {
588
+ color = "#000000";
589
+ } else if (config.colorMode === "custom" && config.customColor) {
590
+ color = config.customColor;
591
+ } else if (config.colorMode === "default" || !config.colorMode) {
592
+ if (!isDefault) {
593
+ const slug = path.basename(t.logo, ".svg");
594
+ const brandHex = simple_icons_hex_default[slug];
595
+ if (brandHex) {
596
+ color = `#${brandHex}`;
597
+ }
598
+ }
599
+ }
600
+ if (color) {
601
+ if (isDefault) {
602
+ if (svgContent.includes("stroke=")) {
603
+ svgContent = svgContent.replace(/stroke="[^"]*"/g, `stroke="${color}"`);
604
+ } else {
605
+ svgContent = svgContent.replace("<svg", `<svg stroke="${color}"`);
606
+ }
607
+ } else {
608
+ if (svgContent.includes("fill=")) {
609
+ svgContent = svgContent.replace(/fill="[^"]*"/g, `fill="${color}"`);
610
+ } else {
611
+ svgContent = svgContent.replace("<svg", `<svg fill="${color}"`);
612
+ }
613
+ }
614
+ }
615
+ await import_fs_extra.default.writeFile(destFile, svgContent);
616
+ copied.add(t.logo);
617
+ if (!isDefault) count++;
618
+ } else {
619
+ }
620
+ }
621
+ if (count > 0) {
622
+ console.log(source_default.blue(`\u2192 Copied ${count} logos to ${dest}`));
623
+ }
624
+ return copied;
625
+ }
626
+ function generateMarkdown(techs, assetsPath, availableLogos) {
627
+ const grouped = {};
628
+ for (const t of techs) {
629
+ const type = t.type || "misc";
630
+ if (!grouped[type]) grouped[type] = [];
631
+ grouped[type].push(t);
632
+ }
633
+ let md = "# Tech Stack\n\n";
634
+ const order = [
635
+ "language",
636
+ "frontend",
637
+ "backend",
638
+ "framework",
639
+ "library",
640
+ "database",
641
+ "orm",
642
+ "auth",
643
+ "api",
644
+ "cloud",
645
+ "hosting",
646
+ "ci",
647
+ "devops",
648
+ "container",
649
+ "testing",
650
+ "build",
651
+ "tooling",
652
+ "misc"
653
+ ];
654
+ const sortedKeys = Object.keys(grouped).sort((a, b) => {
655
+ const idxA = order.indexOf(a);
656
+ const idxB = order.indexOf(b);
657
+ if (idxA === -1 && idxB === -1) return a.localeCompare(b);
658
+ if (idxA === -1) return 1;
659
+ if (idxB === -1) return -1;
660
+ return idxA - idxB;
661
+ });
662
+ for (const type of sortedKeys) {
663
+ const title = type.charAt(0).toUpperCase() + type.slice(1);
664
+ md += `## ${title}
665
+
666
+ `;
667
+ for (const t of grouped[type]) {
668
+ if (assetsPath && t.logo && availableLogos?.has(t.logo)) {
669
+ const logoUrl = `${assetsPath}/${t.logo}`;
670
+ md += `- <img src="${logoUrl}" alt="${t.name}" width="24" height="24" /> **${t.name}**
671
+ `;
672
+ } else {
673
+ md += `- **${t.name}**
674
+ `;
675
+ }
676
+ }
677
+ md += "\n";
678
+ }
679
+ return md;
680
+ }
681
+
682
+ export {
683
+ source_default,
684
+ writeOutput
685
+ };