Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

README.md 1.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # ip6
  2. IPv6 address helper utilities.
  3. # Installation
  4. `npm install ip6`
  5. # Samples
  6. ```javascript
  7. var ip6 = require('ip6')
  8. console.log(ip6.normalize('2404:6800:4003:808::200e'));
  9. // 2404:6800:4003:0808:0000:0000:0000:200e
  10. console.log(ip6.normalize('2404:6800:4003:0808:0000:0000:0000:200e'));
  11. // 2404:6800:4003:0808:0000:0000:0000:200e
  12. console.log(ip6.normalize('2404:6800:4003:808::'));
  13. // 2404:6800:4003:0808:0000:0000:0000:0000
  14. console.log(ip6.normalize('2404:68::'));
  15. // 2404:0068:0000:0000:0000:0000:0000:0000
  16. console.log(ip6.normalize('2404:0068:0000:0000:0000:0000:0000:0000'));
  17. // 2404:0068:0000:0000:0000:0000:0000:0000
  18. console.log(ip6.normalize('2404:6800:4003:0808:0:0:0:200e'));
  19. // 2404:6800:4003:0808:0000:0000:0000:200e
  20. console.log(ip6.normalize('::1'));
  21. // 0000:0000:0000:0000:0000:0000:0000:0001
  22. console.log(ip6.abbreviate('2001:0000:0111:0000:0011:0000:0001:0000'));
  23. // 2001:0:111:0:11:0:1:0
  24. console.log(ip6.abbreviate('2001:0001:0000:0001:0000:0000:0000:0001'));
  25. // 2001:1:0:1::1
  26. console.log(ip6.abbreviate('2001:0001:0000:0001:0000:0000:0000:0000'));
  27. // 2001:1:0:1::
  28. console.log(ip6.abbreviate('0000:0000:0000:0000:0000:0000:0000:0000'));
  29. // ::
  30. console.log(ip6.abbreviate('0000:0000:0000:0000:0000:0000:0000:0001'));
  31. // ::1
  32. console.log(ip6.abbreviate('2041:0000:140F:0000:0000:0000:875B:131B'));
  33. // 2041:0:140F::875B:131B
  34. console.log(ip6.abbreviate('2001:0001:0002:0003:0004:0005:0006:0007'));
  35. // 2001:1:2:3:4:5:6:7
  36. ```