From 7337ae0142b26eaf8ea6437e4de154c7b0af5a08 Mon Sep 17 00:00:00 2001 From: Geno Date: Wed, 8 Jul 2015 02:21:44 +0200 Subject: [PATCH] Create example.js --- example.js | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 example.js diff --git a/example.js b/example.js new file mode 100644 index 0000000..f674844 --- /dev/null +++ b/example.js @@ -0,0 +1,11 @@ +var ipv6calc = require('./index'); + + +var mac = "00-11-22-33-44-55"; +var ip = "2001:db8::211:22ff:fe33:4455"; +console.log(ip); +console.log(ipv6calc.toMAC(ip)); +console.log(mac); +console.log(ipv6calc.toIPv6(mac)); +console.log(ipv6calc.fromIPv6(ip)); +console.log(ipv6calc.toIPv6('2001:bf7:540:0:',mac));