Compare commits

..
Author SHA1 Message Date
ShareVB f76aaa210f chore: fix strange corepack message
Fix corepack claiming strange thing : UsageError: This project is configured to use yarn because /home/runner/work/it-tools/it-tools/package.json has a "packageManager" field
2024-06-16 23:20:05 +02:00
sharevb 2c2b302de1 feat(new tool): JSON To Schema
Convert JSON data to JSON Schema, MySQL DDL, Mongoose Schema, Google BigQuery schema or ClickHouse Table Schema
2024-06-16 23:19:34 +02:00
53 changed files with 160 additions and 96 deletions

No files matched your search

+1 -1
View File
@@ -109,6 +109,7 @@ declare module '@vue/runtime-core' {
JsonDiff: typeof import('./src/tools/json-diff/json-diff.vue')['default']
JsonMinify: typeof import('./src/tools/json-minify/json-minify.vue')['default']
JsonToCsv: typeof import('./src/tools/json-to-csv/json-to-csv.vue')['default']
JsonToSchema: typeof import('./src/tools/json-to-schema/json-to-schema.vue')['default']
JsonToToml: typeof import('./src/tools/json-to-toml/json-to-toml.vue')['default']
JsonToYaml: typeof import('./src/tools/json-to-yaml-converter/json-to-yaml.vue')['default']
JsonViewer: typeof import('./src/tools/json-viewer/json-viewer.vue')['default']
@@ -132,7 +133,6 @@ declare module '@vue/runtime-core' {
NConfigProvider: typeof import('naive-ui')['NConfigProvider']
NDivider: typeof import('naive-ui')['NDivider']
NEllipsis: typeof import('naive-ui')['NEllipsis']
NForm: typeof import('naive-ui')['NForm']
NFormItem: typeof import('naive-ui')['NFormItem']
NGi: typeof import('naive-ui')['NGi']
NGrid: typeof import('naive-ui')['NGrid']
+3 -2
View File
@@ -61,6 +61,7 @@
"figlet": "^1.7.0",
"figue": "^1.2.0",
"fuse.js": "^6.6.2",
"generate-schema": "^2.6.0",
"highlight.js": "^11.7.0",
"iarna-toml-esm": "^3.0.5",
"ibantools": "^4.3.3",
@@ -89,7 +90,6 @@
"uuid": "^9.0.0",
"vue": "^3.3.4",
"vue-i18n": "^9.9.1",
"vue-markdown-render": "^2.2.1",
"vue-router": "^4.1.6",
"vue-tsc": "^1.8.1",
"xml-formatter": "^3.3.2",
@@ -139,5 +139,6 @@
"vitest": "^0.34.0",
"workbox-window": "^7.0.0",
"zx": "^7.2.1"
}
},
"packageManager": "pnpm@8.15.3"
}
+16 -12
View File
@@ -83,6 +83,9 @@ dependencies:
fuse.js:
specifier: ^6.6.2
version: 6.6.2
generate-schema:
specifier: ^2.6.0
version: 2.6.0
highlight.js:
specifier: ^11.7.0
version: 11.7.0
@@ -167,9 +170,6 @@ dependencies:
vue-i18n:
specifier: ^9.9.1
version: 9.9.1(vue@3.3.4)
vue-markdown-render:
specifier: ^2.2.1
version: 2.2.1(vue@3.3.4)
vue-router:
specifier: ^4.1.6
version: 4.1.6(vue@3.3.4)
@@ -5768,6 +5768,14 @@ packages:
engines: {node: '>=10'}
dev: false
/generate-schema@2.6.0:
resolution: {integrity: sha512-EUBKfJNzT8f91xUk5X5gKtnbdejZeE065UAJ3BCzE8VEbvwKI9Pm5jaWmqVeK1MYc1g5weAVFDTSJzN7ymtTqA==}
hasBin: true
dependencies:
commander: 2.20.3
type-of-is: 3.5.1
dev: false
/gensync@1.0.0-beta.2:
resolution: {integrity: sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==}
engines: {node: '>=6.9.0'}
@@ -8558,6 +8566,11 @@ packages:
engines: {node: '>=12.20'}
dev: false
/type-of-is@3.5.1:
resolution: {integrity: sha512-SOnx8xygcAh8lvDU2exnK2bomASfNjzB3Qz71s2tw9QnX8fkAo7aC+D0H7FV0HjRKj94CKV2Hi71kVkkO6nOxg==}
engines: {node: '>=0.10.5'}
dev: false
/typed-array-buffer@1.0.0:
resolution: {integrity: sha512-Y8KTSIglk9OZEr8zywiIHG/kmQ7KWyjseXs1CbSo8vC42w7hg2HgYTxSWwP0+is7bWDc1H+Fo026CpHFwm8tkw==}
engines: {node: '>= 0.4'}
@@ -9205,15 +9218,6 @@ packages:
'@vue/devtools-api': 6.5.0
vue: 3.3.4
/vue-markdown-render@2.2.1(vue@3.3.4):
resolution: {integrity: sha512-XkYnC0PMdbs6Vy6j/gZXSvCuOS0787Se5COwXlepRqiqPiunyCIeTPQAO2XnB4Yl04EOHXwLx5y6IuszMWSgyQ==}
peerDependencies:
vue: ^3.3.4
dependencies:
markdown-it: 13.0.2
vue: 3.3.4
dev: false
/vue-router@4.1.6(vue@3.3.4):
resolution: {integrity: sha512-DYWYwsG6xNPmLq/FmZn8Ip+qrhFEzA14EI12MsMgVxvHFDYvlr4NXpVF5hrRH1wVcDP8fGi5F4rxuJSl8/r+EQ==}
peerDependencies:
+32 -1
View File
@@ -1,7 +1,8 @@
import { useRouteQuery } from '@vueuse/router';
import { computed } from 'vue';
import { useStorage } from '@vueuse/core';
export { useQueryParam };
export { useQueryParam, useQueryParamOrStorage };
const transformers = {
number: {
@@ -16,6 +17,12 @@ const transformers = {
fromQuery: (value: string) => value.toLowerCase() === 'true',
toQuery: (value: boolean) => (value ? 'true' : 'false'),
},
object: {
fromQuery: (value: string) => {
return JSON.parse(value);
},
toQuery: (value: object) => JSON.stringify(value),
},
};
function useQueryParam<T>({ name, defaultValue }: { name: string; defaultValue: T }) {
@@ -33,3 +40,27 @@ function useQueryParam<T>({ name, defaultValue }: { name: string; defaultValue:
},
});
}
function useQueryParamOrStorage<T>({ name, storageName, defaultValue }: { name: string; storageName: string; defaultValue: T }) {
const type = typeof defaultValue;
const transformer = transformers[type as keyof typeof transformers] ?? transformers.string;
const storageRef = useStorage(storageName, defaultValue);
const proxyDefaultValue = transformer.toQuery(defaultValue as never);
const proxy = useRouteQuery(name, proxyDefaultValue);
const r = ref(defaultValue);
watch(r,
(value) => {
proxy.value = transformer.toQuery(value as never);
storageRef.value = value as never;
},
{ deep: true });
r.value = (proxy.value && proxy.value !== proxyDefaultValue
? transformer.fromQuery(proxy.value) as unknown as T
: storageRef.value as T) as never;
return r;
}
-35
View File
@@ -2,9 +2,7 @@
import { useRoute } from 'vue-router';
import { useHead } from '@vueuse/head';
import type { HeadObject } from '@vueuse/head';
import VueMarkdown from 'vue-markdown-render';
import { useThemeVars } from 'naive-ui';
import BaseLayout from './base.layout.vue';
import FavoriteButton from '@/components/FavoriteButton.vue';
import type { Tool } from '@/tools/tools.types';
@@ -30,23 +28,6 @@ const { t } = useI18n();
const i18nKey = computed<string>(() => route.path.trim().replace('/', ''));
const toolTitle = computed<string>(() => t(`tools.${i18nKey.value}.title`, String(route.meta.name)));
const toolDescription = computed<string>(() => t(`tools.${i18nKey.value}.description`, String(route.meta.description)));
const toolFooter = computed<string>(() => {
const createLink = (linkText: string, url: string) => {
return `[${linkText.replace('[', '\\[').replace(']', '\\]')}](${url.replace('(', '%28').replace(')', '%29')})`;
};
let footer = t(`tools.${i18nKey.value}.footer`, String(route.meta.footer));
if (footer === 'undefined') {
footer = '';
}
const npmPackages = (route.meta.npmPackages as string[] || [])
.map(
packageName => createLink(
packageName,
packageName.includes('://') ? packageName : `https://www.npmjs.com/package/${packageName}`),
);
return ((npmPackages.length > 0 ? `Made with ${npmPackages.join(', ')}\n` : '') + footer).trim();
});
const themeVars = useThemeVars();
</script>
<template>
@@ -74,10 +55,6 @@ const themeVars = useThemeVars();
<div class="tool-content">
<slot />
</div>
<div class="tool-footer">
<VueMarkdown :source="toolFooter" />
</div>
</BaseLayout>
</template>
@@ -89,11 +66,9 @@ const themeVars = useThemeVars();
align-items: flex-start;
flex-wrap: wrap;
gap: 16px;
overflow-x: auto;
::v-deep(& > *) {
flex: 0 1 600px;
min-width:0;
}
}
@@ -130,14 +105,4 @@ const themeVars = useThemeVars();
}
}
}
.tool-footer {
opacity: 0.7;
font-size: 12px;
text-align: center;
::v-deep(a) {
color: v-bind('themeVars.textColor1');
font-style: italic;
}
}
</style>
-1
View File
@@ -9,5 +9,4 @@ export const tool = defineTool({
component: () => import('./ascii-text-drawer.vue'),
icon: Artboard,
createdAt: new Date('2024-03-03'),
npmPackages: ['figlet'],
});
-1
View File
@@ -9,5 +9,4 @@ export const tool = defineTool({
keywords: ['base64', 'converter', 'upload', 'image', 'file', 'conversion', 'web', 'data', 'format'],
component: () => import('./base64-file-converter.vue'),
icon: FileDigit,
npmPackages: ['js-base64'],
});
@@ -10,5 +10,4 @@ export const tool = defineTool({
component: () => import('./base64-string-converter.vue'),
icon: FileDigit,
redirectFrom: ['/file-to-base64', '/base64-converter'],
npmPackages: ['js-base64'],
});
-1
View File
@@ -9,5 +9,4 @@ export const tool = defineTool({
keywords: ['bcrypt', 'hash', 'compare', 'password', 'salt', 'round', 'storage', 'crypto'],
component: () => import('./bcrypt.vue'),
icon: LockSquare,
npmPackages: ['bcryptjs'],
});
-1
View File
@@ -9,5 +9,4 @@ export const tool = defineTool({
keywords: ['BIP39', 'passphrase', 'generator', 'mnemonic', 'entropy'],
component: () => import('./bip39-generator.vue'),
icon: AlignJustified,
npmPackages: ['@it-tools/bip39'],
});
-1
View File
@@ -23,5 +23,4 @@ export const tool = defineTool({
],
component: () => import('./case-converter.vue'),
icon: LetterCaseToggle,
npmPackages: ['change-case'],
});
-1
View File
@@ -10,5 +10,4 @@ export const tool = defineTool({
component: () => import('./color-converter.vue'),
icon: Palette,
redirectFrom: ['/color-picker-converter'],
npmPackages: ['colord'],
});
-1
View File
@@ -23,5 +23,4 @@ export const tool = defineTool({
],
component: () => import('./crontab-generator.vue'),
icon: Alarm,
npmPackages: ['cronstrue'],
});
-1
View File
@@ -9,5 +9,4 @@ export const tool = defineTool({
keywords: ['date', 'time', 'converter', 'iso', 'utc', 'timezone', 'year', 'month', 'day', 'minute', 'seconde'],
component: () => import('./date-time-converter.vue'),
icon: Calendar,
npmPackages: ['date-fns'],
});
-1
View File
@@ -10,5 +10,4 @@ export const tool = defineTool({
component: () => import('./emoji-picker.vue'),
icon: MoodSmile,
createdAt: new Date('2023-08-07'),
npmPackages: ['unicode-emoji-json', 'emojilib'],
});
-1
View File
@@ -10,5 +10,4 @@ export const tool = defineTool({
component: () => import('./encryption.vue'),
icon: Lock,
redirectFrom: ['/cypher'],
npmPackages: ['crypto-s'],
});
-1
View File
@@ -9,5 +9,4 @@ export const tool = defineTool({
keywords: ['hmac', 'generator', 'MD5', 'SHA1', 'SHA256', 'SHA224', 'SHA512', 'SHA384', 'SHA3', 'RIPEMD160'],
component: () => import('./hmac-generator.vue'),
icon: ShortTextRound,
npmPackages: ['crypto-js'],
});
-1
View File
@@ -9,5 +9,4 @@ export const tool = defineTool({
keywords: ['html', 'wysiwyg', 'editor', 'p', 'ul', 'ol', 'converter', 'live'],
component: () => import('./html-wysiwyg-editor.vue'),
icon: Edit,
npmPackages: ['monaco', 'prettier'],
});
@@ -10,5 +10,4 @@ export const tool = defineTool({
component: () => import('./iban-validator-and-parser.vue'),
icon: Bank,
createdAt: new Date('2023-08-26'),
npmPackages: ['ibantools'],
});
+2
View File
@@ -6,6 +6,7 @@ import { tool as asciiTextDrawer } from './ascii-text-drawer';
import { tool as textToUnicode } from './text-to-unicode';
import { tool as safelinkDecoder } from './safelink-decoder';
import { tool as jsonToSchema } from './json-to-schema';
import { tool as pdfSignatureChecker } from './pdf-signature-checker';
import { tool as numeronymGenerator } from './numeronym-generator';
import { tool as macAddressGenerator } from './mac-address-generator';
@@ -148,6 +149,7 @@ export const toolsByCategory: ToolCategory[] = [
dockerRunToDockerComposeConverter,
xmlFormatter,
yamlViewer,
jsonToSchema,
],
},
{
-1
View File
@@ -10,5 +10,4 @@ export const tool = defineTool({
component: () => import('./ipv6-ula-generator.vue'),
icon: BuildingFactory,
createdAt: new Date('2023-04-09'),
npmPackages: ['crypto-js'],
});
-1
View File
@@ -10,5 +10,4 @@ export const tool = defineTool({
component: () => import('./json-diff.vue'),
icon: CompareArrowsRound,
createdAt: new Date('2023-04-20'),
npmPackages: ['json5'],
});
-1
View File
@@ -9,5 +9,4 @@ export const tool = defineTool({
keywords: ['json', 'minify', 'format'],
component: () => import('./json-minify.vue'),
icon: Braces,
npmPackages: ['json5'],
});
-1
View File
@@ -10,5 +10,4 @@ export const tool = defineTool({
component: () => import('./json-to-csv.vue'),
icon: List,
createdAt: new Date('2023-06-18'),
npmPackages: ['json5'],
});
+8
View File
@@ -0,0 +1,8 @@
declare module 'generate-schema' {
function generic(jsonObject: object);
function mongoose(jsonObject: object);
function bigquery(jsonObject: object);
function json(title: string, jsonObject: object);
function mysql(tableName: string, jsonObject: object);
function clickhouse(tableName: string, jsonObject: object, dateField: string);
}
+12
View File
@@ -0,0 +1,12 @@
import { Braces } from '@vicons/tabler';
import { defineTool } from '../tool';
export const tool = defineTool({
name: 'Json to Schema',
path: '/json-to-schema',
description: 'Convert JSON data to JSON Schema, MySQL DDL, Mongoose Schema, Google BigQuery schema or ClickHouse Table Schema',
keywords: ['json', 'schema', 'mysql', 'sql', 'ddl', 'mongoose', 'bigquery', 'clickhouse', 'table'],
component: () => import('./json-to-schema.vue'),
icon: Braces,
createdAt: new Date('2024-05-11'),
});
@@ -0,0 +1,86 @@
<script setup lang="ts">
import JSON5 from 'json5';
import GenerateSchema from 'generate-schema';
import { withDefaultOnError } from '../../utils/defaults';
import type { UseValidationRule } from '@/composable/validation';
import { useQueryParamOrStorage } from '@/composable/queryParams';
const formats = [
{ value: 'generic', label: 'Generic' },
{ value: 'json', label: 'JSON Schema' },
{ value: 'mysql', label: 'MySQL Table Schema' },
{ value: 'mongoose', label: 'Mongoose Schema' },
{ value: 'bigquery', label: 'Google BigQuery schema' },
{ value: 'clickhouse', label: 'ClickHouse Table Schema' },
];
const tableName = ref('TableName');
const format = useQueryParamOrStorage({ name: 'fmt', storageName: 'json-to-schema:fmt', defaultValue: 'json' });
function convertJsonToSchema(value: string) {
const object = JSON5.parse(value);
switch (format.value) {
case 'json':
return JSON.stringify(GenerateSchema.json(tableName.value, object), null, 2);
case 'mysql':
return GenerateSchema.mysql(tableName.value, object);
case 'mongoose':
return JSON.stringify(GenerateSchema.mongoose(object), null, 2);
case 'bigquery':
return JSON.stringify(GenerateSchema.bigquery(object), null, 2);
case 'clickhouse':
return JSON.stringify(GenerateSchema.clickhouse(tableName.value, object, 'theDateField'), null, 2);
default:
return JSON.stringify(GenerateSchema.generic(object), null, 2);
}
}
const transformer = (value: string) => value.trim() === '' ? '' : withDefaultOnError(() => convertJsonToSchema(value), '');
const schemaLanguage = computed(() => {
switch (format.value) {
case 'mysql':
return 'sql';
case 'mongoose':
return 'json';
case 'bigquery':
return 'json';
case 'clickhouse':
return 'json';
default:
return 'json';
}
});
const rules: UseValidationRule<string>[] = [
{
validator: (v: string) => v === '' || JSON5.parse(v),
message: 'Provided JSON is not valid.',
},
];
</script>
<template>
<div>
<c-select
v-model:value="format"
:options="formats"
placeholder="Target Schema format"
/>
<c-input-text
v-if="['clickhouse', 'json', 'mysql'].includes(format)"
v-model:value="tableName"
label="Table Name"
placeholder="Table Name"
mb-2
/>
<n-divider />
<format-transformer
input-label="Your JSON"
input-placeholder="Paste your JSON here..."
output-label="Your schema"
:output-language="schemaLanguage"
:input-validation-rules="rules"
:transformer="transformer"
/>
</div>
</template>
-1
View File
@@ -10,5 +10,4 @@ export const tool = defineTool({
component: () => import('./json-to-toml.vue'),
icon: Braces,
createdAt: new Date('2023-06-23'),
npmPackages: ['json5', 'iarna-toml-esm'],
});
@@ -10,5 +10,4 @@ export const tool = defineTool({
component: () => import('./json-to-yaml.vue'),
icon: Braces,
createdAt: new Date('2023-04-10'),
npmPackages: ['yaml', 'json5'],
});
-1
View File
@@ -10,5 +10,4 @@ export const tool = defineTool({
component: () => import('./json-viewer.vue'),
icon: Braces,
redirectFrom: ['/json-viewer'],
npmPackages: ['json5'],
});
-1
View File
@@ -25,5 +25,4 @@ export const tool = defineTool({
],
component: () => import('./jwt-parser.vue'),
icon: Key,
npmPackages: ['jwt-decode'],
});
-1
View File
@@ -10,5 +10,4 @@ export const tool = defineTool({
component: () => import('./mac-address-lookup.vue'),
icon: Devices,
createdAt: new Date('2023-04-06'),
npmPackages: ['oui-data'],
});
-1
View File
@@ -41,5 +41,4 @@ export const tool = defineTool({
],
component: () => import('./math-evaluator.vue'),
icon: Math,
npmPackages: ['mathjs'],
});
-1
View File
@@ -23,5 +23,4 @@ export const tool = defineTool({
],
component: () => import('./meta-tag-generator.vue'),
icon: Tags,
npmPackages: ['@it-tools/oggen'],
});
-1
View File
@@ -9,5 +9,4 @@ export const tool = defineTool({
keywords: ['mime', 'types', 'extension', 'content', 'type'],
component: () => import('./mime-types.vue'),
icon: World,
npmPackages: ['mime-types'],
});
@@ -25,5 +25,4 @@ export const tool = defineTool({
],
component: () => import('./otp-code-generator-and-validator.vue'),
icon: DeviceMobile,
npmPackages: ['crypto-js'],
});
-1
View File
@@ -10,5 +10,4 @@ export const tool = defineTool({
component: () => import('./pdf-signature-checker.vue'),
icon: FileCertIcon,
createdAt: new Date('2023-12-09'),
npmPackages: ['pdf-signature-reader'],
});
@@ -22,5 +22,4 @@ export const tool = defineTool({
component: () => import('./phone-parser-and-formatter.vue'),
icon: Phone,
createdAt: new Date('2023-05-01'),
npmPackages: ['libphonenumber-js', 'country-code-lookup'],
});
-1
View File
@@ -9,5 +9,4 @@ export const tool = defineTool({
keywords: ['qr', 'code', 'generator', 'square', 'color', 'link', 'low', 'medium', 'quartile', 'high', 'transparent'],
component: () => import('./qr-code-generator.vue'),
icon: Qrcode,
npmPackages: ['qrcode'],
});
@@ -9,5 +9,4 @@ export const tool = defineTool({
keywords: ['rsa', 'key', 'pair', 'generator', 'public', 'private', 'secret', 'ssh', 'pem'],
component: () => import('./rsa-key-pair-generator.vue'),
icon: Certificate,
npmPackages: ['node-forge'],
});
-1
View File
@@ -9,5 +9,4 @@ export const tool = defineTool({
keywords: ['slugify', 'string', 'escape', 'emoji', 'special', 'character', 'space', 'trim'],
component: () => import('./slugify-string.vue'),
icon: AbcRound,
npmPackages: ['@sindresorhus/slugify'],
});
-1
View File
@@ -24,5 +24,4 @@ export const tool = defineTool({
],
component: () => import('./sql-prettify.vue'),
icon: Database,
npmPackages: ['sql-formatter'],
});
-1
View File
@@ -11,5 +11,4 @@ export const tool = defineTool({
component: () => import('./toml-to-json.vue'),
icon: BracketIcon,
createdAt: new Date('2023-06-23'),
npmPackages: ['yaml', 'iarna-toml-esm'],
});
-1
View File
@@ -10,5 +10,4 @@ export const tool = defineTool({
component: () => import('./toml-to-yaml.vue'),
icon: BracketIcon,
createdAt: new Date('2023-06-23'),
npmPackages: ['yaml', 'iarna-toml-esm'],
});
-2
View File
@@ -10,8 +10,6 @@ export interface Tool {
redirectFrom?: string[]
isNew: boolean
createdAt?: Date
npmPackages?: string[]
footer?: string
}
export interface ToolCategory {
-1
View File
@@ -10,5 +10,4 @@ export const tool = defineTool({
component: () => import('./ulid-generator.vue'),
icon: SortDescendingNumbers,
createdAt: new Date('2023-09-11'),
npmPackages: ['ulid'],
});
-1
View File
@@ -10,5 +10,4 @@ export const tool = defineTool({
component: () => import('./user-agent-parser.vue'),
icon: Browser,
createdAt: new Date('2023-04-06'),
npmPackages: ['ua-parser-js'],
});
-1
View File
@@ -9,5 +9,4 @@ export const tool = defineTool({
keywords: ['uuid', 'v4', 'random', 'id', 'alphanumeric', 'identity', 'token', 'string', 'identifier', 'unique', 'v1', 'v3', 'v5', 'nil'],
component: () => import('./uuid-generator.vue'),
icon: Fingerprint,
npmPackages: ['uuid'],
});
@@ -10,5 +10,4 @@ export const tool = defineTool({
component: () => import('./wifi-qr-code-generator.vue'),
icon: Qrcode,
createdAt: new Date('2023-09-06'),
npmPackages: ['qrcode'],
});
-1
View File
@@ -10,5 +10,4 @@ export const tool = defineTool({
component: () => import('./xml-formatter.vue'),
icon: Code,
createdAt: new Date('2023-06-17'),
npmPackages: ['xml-formatter'],
});
@@ -10,5 +10,4 @@ export const tool = defineTool({
component: () => import('./yaml-to-json.vue'),
icon: AlignJustified,
createdAt: new Date('2023-04-10'),
npmPackages: ['yaml'],
});
-1
View File
@@ -10,5 +10,4 @@ export const tool = defineTool({
component: () => import('./yaml-to-toml.vue'),
icon: AlignJustified,
createdAt: new Date('2023-06-23'),
npmPackages: ['yaml', 'iarna-toml-esm'],
});
-1
View File
@@ -10,5 +10,4 @@ export const tool = defineTool({
component: () => import('./yaml-viewer.vue'),
icon: AlignJustified,
createdAt: new Date('2024-01-31'),
npmPackages: ['yaml'],
});