All Projects → shlomiassaf → ngx-ip

shlomiassaf / ngx-ip

Licence: MIT License
An Angular network address component (IPv4, IPv6 and MAC)

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language
HTML
75241 projects
CSS
56736 projects
shell
77523 projects

Projects that are alternatives of or similar to ngx-ip

Ship
A simple, handy network addressing multitool with plenty of features
Stars: ✭ 81 (+305%)
Mutual labels:  mac, ipv6, address, ipv4
Netaddr
A network address manipulation library for Python
Stars: ✭ 648 (+3140%)
Mutual labels:  mac, ipv6, ipv4
private-ip
Check if IP address is private.
Stars: ✭ 26 (+30%)
Mutual labels:  ipv6, address, ipv4
zx-ip-address
Deprecated
Stars: ✭ 96 (+380%)
Mutual labels:  ipv6, address, ipv4
ipapi-python
Python bindings for https://ipapi.co (IP Address Location) - Use with python / django / flask for IP address location lookup
Stars: ✭ 42 (+110%)
Mutual labels:  ipv6, ipv4
treebitmap
Fast IP lookup table for IPv4/IPv6 prefixes
Stars: ✭ 81 (+305%)
Mutual labels:  ipv6, ipv4
bacnet-stack
BACnet Protocol Stack library provides a BACnet application layer, network layer and media access (MAC) layer communications services.
Stars: ✭ 199 (+895%)
Mutual labels:  ipv6, ipv4
Geolocate-IP-Browser-Extension
A browser extension, which shows you the origin of your IP address.
Stars: ✭ 21 (+5%)
Mutual labels:  ipv6, ipv4
IP2Location-C-Library
IP2Location C library enables the user to find the country, region, city, coordinates, zip code, time zone, ISP, domain name, connection type, area code, weather station code, weather station name, mobile, usage types, etc that any IP address or hostname originates from.
Stars: ✭ 37 (+85%)
Mutual labels:  ipv6, ipv4
FGRoute
Get your device ip address, router ip or wifi ssid
Stars: ✭ 128 (+540%)
Mutual labels:  address, mask
ip
Immutable value object for IPv4 and IPv6 addresses, including helper methods and Doctrine support.
Stars: ✭ 212 (+960%)
Mutual labels:  ipv6, ipv4
net-protocol
golang模拟内核协议栈 实现链路层、网络层、传输层、应用层 用户态协议栈 ,基于虚拟网卡TUN/TAP
Stars: ✭ 129 (+545%)
Mutual labels:  ipv6, ipv4
hphr
Halophile Router (a VyOS-based, SaltStack-automated, NetBox-configured router for small provider networks)
Stars: ✭ 39 (+95%)
Mutual labels:  ipv6, ipv4
ipaddress
Data analysis of IP addresses and networks
Stars: ✭ 20 (+0%)
Mutual labels:  ipv6, ipv4
tracetrout
A magical reverse traceroute HTTP(S) server
Stars: ✭ 48 (+140%)
Mutual labels:  ipv6, ipv4
IP2Location-PHP-Module
This module is a PHP module that enables the user to find the country, region, city, coordinates, zip code, ISP, domain name, timezone, connection speed, IDD code, area code, weather station code, weather station name, mobile, usage types, address type, IAB category, etc that any IP address or host name originates from.
Stars: ✭ 154 (+670%)
Mutual labels:  ipv6, ipv4
whereabouts
An HTTP service for mapping IPv4 and IPv6 addresses to cities, countries & continents
Stars: ✭ 16 (-20%)
Mutual labels:  ipv6, ipv4
Ip
🌏根据IpV4、IpV6地址获取定位信息的PHP🐘组件 PHP components that obtain location information based on IpV4, IpV6 addresses
Stars: ✭ 23 (+15%)
Mutual labels:  ipv6, ipv4
freebind
IPv4 and IPv6 address rate limiting evasion tool
Stars: ✭ 88 (+340%)
Mutual labels:  ipv6, ipv4
go-net-radix
Go bindings for radix tree library for fast subnet (IPv4 and IPv6) lookups
Stars: ✭ 37 (+85%)
Mutual labels:  ipv6, ipv4

#ngx-ip

An angular network address (IPv4, IPv6 and MAC) input component.

ngx-ip is a network address input component for IPv4/6 & MAC address formats. Each block has it's own input element for better UX control This allows highlighting specific blocks with invalid syntax, disabling specific blocks (limit pools, etc...) and more.

ngx-ip is NOT a mask component, masking is a different approach which uses one input element for the whole IP address.

Install:

npm install ngx-ip --save or yarn add ngx-ip --save

DEMO:

https://shlomiassaf.github.io/ngx-ip

Features

  • Ability to customize the internal input controls (rendering, not css)
  • Supports IPv4, IPv6 and MAC address
  • Supports IPv4 with subnet mask (ipv4WithMask)
  • Control if user can type invalid characters
  • Separator behaves like TAB (e.g: in IPv4 pressing dot (.) is like pressing TAB)
  • Support paste (single value or whole address)
  • Support copy block or address
  • Disable specific blocks
  • Highlight invalid blocks (does not replace validation)
  • Themes
  • Implements OnPush
  • Supports AOT
  • Angular packaging format included (FESM, FESM2015, UMD)

Validation

ngx-ip performs internal validation at the block level to allow invalid block highlighting.

Block validation does not replace form validation, if you use angular forms you still need to validate the output, as you need with any other control.

Should I use ngx-ip or mask?

Well, this depends on your requirements, here are some key points:

Copy / Paste

ngx-ip offers better UX but since it has multiple input elements it has a different copy/paste (CMD/CTRL-C/V) behaviour.

When pasting, ngx-ip will auto detect the content and handle full address automatically.

When copying, ngx-ip has 3 copy modes to choose from, these modes fire only if the whole text in a block is selected otherwise copy behavior is native.

  • Block mode: This is similar to the native copy mode, when fired it will copy the content of the block.
  • Address mode: This will copy the whole address.
  • Select mode: Once fired the user will be prompted to select Block or Address copy.
    This mode is not supported in browsers that does not support the document.execCommand('copy'); method (Safari 9), if set in such browser it will fallback to Block mode.

Rendering

ngx-ip renders more input elements.
This should have no effect on performance, unless you render 1000+ components and if you do you're doing something wrong :)

If these are deal breakers for you you should definitely use a mask component, here are some examples Text Mask, PrimeNG Input Mask, etc...

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].