Skip to content

v0.1.0

Choose a tag to compare

@github-actions github-actions released this 08 Sep 12:03
· 83 commits to main since this release

0.1.0 (2025-09-08)

Features

  • feat: extend toLong(), toString() and subnet.contains() suitable input types (#8) (349252b)
toLong('127.0.0.1') === toLong(toBuffer('127.0.0.1'))
toBuffer(2130706433) === toBuffer(toString(2130706433))
toString(toBuffer(2130706433)) === toString(2130706433)


const sn = subnet('192.168.1.134', '255.255.255.192')

sn.contains('192.168.1.128')              // true
sn.contains(toLong('192.168.1.180'))      // true
sn.contains(toBuffer('192.168.1.180'))    // true