diff --git a/package.json b/package.json index 5a358e47..890f41f5 100644 --- a/package.json +++ b/package.json @@ -187,6 +187,12 @@ "ip-regex": "^5.0.0", "jks-js": "^1.1.3", "javastack.js": "^1.0.2", + "ip-address": "^9.0.5", + "ip-bigint": "^8.0.2", + "ip-cidr": "^4.0.0", + "ip-matching": "^2.1.2", + "is-cidr": "^5.0.3", + "is-ip": "^5.0.1", "js-base64": "^3.7.6", "image-in-browser": "^3.1.0", "js-base64": "^3.7.7", diff --git a/src/tools/index.ts b/src/tools/index.ts index f701fa89..bf82b681 100644 --- a/src/tools/index.ts +++ b/src/tools/index.ts @@ -117,6 +117,7 @@ import { tool as ed25519KeyPairGenerator } from './ed25519-key-pair-generator'; import { tool as fileType } from './file-type'; import { tool as htmlCleaner } from './html-cleaner'; import { tool as imageToAsciiArt } from './image-to-ascii-art'; +import { tool as ipv6SubnetCalculator } from './ipv6-subnet-calculator'; import { tool as pdfSignatureChecker } from './pdf-signature-checker'; import { tool as numeronymGenerator } from './numeronym-generator'; import { tool as macAddressGenerator } from './mac-address-generator'; @@ -409,6 +410,8 @@ export const toolsByCategory: ToolCategory[] = [ // ipv6AddressConverter, ipInRange, ipv6AddressConverter, + ipv6SubnetCalculator, + ipv4AddressConverter, ipv4RangeExpander, macAddressLookup, macAddressGenerator, diff --git a/src/tools/ipv6-subnet-calculator/index.ts b/src/tools/ipv6-subnet-calculator/index.ts new file mode 100644 index 00000000..16db73bb --- /dev/null +++ b/src/tools/ipv6-subnet-calculator/index.ts @@ -0,0 +1,12 @@ +import { RouterOutlined } from '@vicons/material'; +import { defineTool } from '../tool'; + +export const tool = defineTool({ + name: 'Ipv6 subnet calculator', + path: '/ipv6-subnet-calculator', + description: 'Parse your IPv6 CIDR blocks and get all the info you need about your sub network.', + keywords: ['ipv6', 'subnet', 'calculator', 'mask', 'network', 'cidr', 'netmask', 'bitmask', 'broadcast', 'address'], + component: () => import('./ipv6-subnet-calculator.vue'), + icon: RouterOutlined, + createdAt: new Date('2024-02-25'), +}); diff --git a/src/tools/ipv6-subnet-calculator/ipv6-subnet-calculator.vue b/src/tools/ipv6-subnet-calculator/ipv6-subnet-calculator.vue new file mode 100644 index 00000000..df4c79aa --- /dev/null +++ b/src/tools/ipv6-subnet-calculator/ipv6-subnet-calculator.vue @@ -0,0 +1,140 @@ + + + + + + + + + + + + {{ label }} + + + + + {{ undefinedFallback }} + + + + + + + +