From 521d0bf638f4cca9e20fa4d2a91c880bf1f5787f Mon Sep 17 00:00:00 2001 From: ShareVB Date: Sun, 20 Jul 2025 18:17:52 +0200 Subject: [PATCH] feat(new tools): YAML/JSON Flattener/Unflattener --- src/tools/json-flatten-nestify/index.ts | 13 +++++ .../json-flatten-nestify.vue | 57 ++++++++++++++++++ src/tools/yaml-flatten-nestify/index.ts | 14 +++++ .../yaml-flatten-nestify.vue | 58 +++++++++++++++++++ 4 files changed, 142 insertions(+) create mode 100644 src/tools/json-flatten-nestify/index.ts create mode 100644 src/tools/json-flatten-nestify/json-flatten-nestify.vue create mode 100644 src/tools/yaml-flatten-nestify/index.ts create mode 100644 src/tools/yaml-flatten-nestify/yaml-flatten-nestify.vue diff --git a/src/tools/json-flatten-nestify/index.ts b/src/tools/json-flatten-nestify/index.ts new file mode 100644 index 00000000..d6a141bf --- /dev/null +++ b/src/tools/json-flatten-nestify/index.ts @@ -0,0 +1,13 @@ +import { Braces } from '@vicons/tabler'; +import { defineTool } from '../tool'; + +export const tool = defineTool({ + name: 'JSON Flattener/Unflattener', + path: '/json-flatten-nestify', + description: 'Flatten or nestify/unflatten JSON content (ie, {a:{b:1}} vs {"a.b":1}', + keywords: ['json', 'flatten', 'nestify', 'unflatten'], + component: () => import('./json-flatten-nestify.vue'), + icon: Braces, + createdAt: new Date('2025-07-19'), + category: 'JSON', +}); diff --git a/src/tools/json-flatten-nestify/json-flatten-nestify.vue b/src/tools/json-flatten-nestify/json-flatten-nestify.vue new file mode 100644 index 00000000..98f1e516 --- /dev/null +++ b/src/tools/json-flatten-nestify/json-flatten-nestify.vue @@ -0,0 +1,57 @@ + + + diff --git a/src/tools/yaml-flatten-nestify/index.ts b/src/tools/yaml-flatten-nestify/index.ts new file mode 100644 index 00000000..8ee614e9 --- /dev/null +++ b/src/tools/yaml-flatten-nestify/index.ts @@ -0,0 +1,14 @@ +import { AlignJustified } from '@vicons/tabler'; +import { defineTool } from '../tool'; + +export const tool = defineTool({ + name: 'YAML Flattener/Unflattener', + path: '/yaml-flatten-nestify', + description: 'Flatten or nestify/unflatten YAML content (ie, a.b: 1 vs a: b: 1)', + keywords: ['yaml', 'flatten', 'nestify', 'unflatten'], + component: () => import('./yaml-flatten-nestify.vue'), + icon: AlignJustified, + createdAt: new Date('2025-07-19'), + npmPackages: ['yaml'], + category: 'YAML', +}); diff --git a/src/tools/yaml-flatten-nestify/yaml-flatten-nestify.vue b/src/tools/yaml-flatten-nestify/yaml-flatten-nestify.vue new file mode 100644 index 00000000..8bc19005 --- /dev/null +++ b/src/tools/yaml-flatten-nestify/yaml-flatten-nestify.vue @@ -0,0 +1,58 @@ + + +