diff --git a/src/tools/index.ts b/src/tools/index.ts
index e4de3afc..f46f7843 100644
--- a/src/tools/index.ts
+++ b/src/tools/index.ts
@@ -1,6 +1,7 @@
import { LockOpen } from '@vicons/tabler';
import type { ToolCategory } from './Tool';
+import { tool as urlParser } from './url-parser';
import { tool as deviceInformation } from './device-information';
import { tool as bcrypt } from './bcrypt';
import { tool as caseConverter } from './case-converter';
@@ -36,7 +37,7 @@ export const toolsByCategory: ToolCategory[] = [
{
name: 'Web',
icon: LockOpen,
- components: [urlEncoder, qrCodeGenerator, deviceInformation],
+ components: [urlEncoder, qrCodeGenerator, urlParser, deviceInformation],
},
{
name: 'Development',
diff --git a/src/tools/url-parser/index.ts b/src/tools/url-parser/index.ts
new file mode 100644
index 00000000..b46de14a
--- /dev/null
+++ b/src/tools/url-parser/index.ts
@@ -0,0 +1,11 @@
+import { Unlink } from '@vicons/tabler';
+import type { ITool } from './../Tool';
+
+export const tool: ITool = {
+ name: 'Url parser',
+ path: '/url-parser',
+ description: 'Parse an url string to get all the differents parts (protocol, origin, params, port, username-password, ...)',
+ keywords: ['url', 'parser', 'protocol', 'origin', 'params', 'port', 'username', 'password', 'href'],
+ component: () => import('./url-parser.vue'),
+ icon: Unlink,
+};
diff --git a/src/tools/url-parser/url-parser.vue b/src/tools/url-parser/url-parser.vue
new file mode 100644
index 00000000..d35923b8
--- /dev/null
+++ b/src/tools/url-parser/url-parser.vue
@@ -0,0 +1,118 @@
+
+
+
+
+
+
+
+
+
+
+
+ {{ title }}:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file