beaugunderson / ip-address

💻 a library for parsing and manipulating IPv4 and IPv6 addresses in JavaScript
http://ip-address.js.org/
MIT License
580 stars 73 forks source link

Add conversion to reverse format and back for ipv4 #140

Closed leftshift closed 3 years ago

leftshift commented 3 years ago

I noticed there already are functions to convert to and from the reverse form for v6 addresses. I also need this functionality for v4 addresses, so this adds the same kind of functions to the v4 addresses.

codecov[bot] commented 3 years ago

Codecov Report

Merging #140 (15215b8) into master (94b367c) will decrease coverage by 0.48%. The diff coverage is 75.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #140      +/-   ##
==========================================
- Coverage   98.04%   97.56%   -0.49%     
==========================================
  Files           9        9              
  Lines         564      575      +11     
  Branches       82       84       +2     
==========================================
+ Hits          553      561       +8     
- Misses          3        4       +1     
- Partials        8       10       +2     
Impacted Files Coverage Δ
lib/common.ts 100.00% <ø> (ø)
lib/ipv4.ts 97.00% <72.72%> (-3.00%) :arrow_down:
lib/ipv6.ts 98.14% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 94b367c...15215b8. Read the comment docs.

beaugunderson commented 3 years ago

@leftshift love it, thanks! will cut a release shortly after I merge 👍

beaugunderson commented 3 years ago

released in 8.1.0 🎉