Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

inet_xtoy

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

inet_xtoy - npm Package Compare versions

Comparing version 1.2.5 to 1.2.6

11

package.json
{
"name": "inet_xtoy",
"version": "1.2.5",
"version": "1.2.6",
"description": "inet_ntop() and inet_pton() bindings for Node.js",

@@ -38,5 +38,5 @@ "main": "index.js",

"devDependencies": {
"mocha": "^10.0.0",
"node-gyp": "^9.0.0",
"prebuild": "^11.0.0",
"mocha": "^10.2.0",
"node-gyp": "^9.4.1",
"prebuild": "^12.1.0",
"should": "^13.2.3"

@@ -58,3 +58,4 @@ },

"publishConfig": {
"access": "public"
"access": "public",
"provenance": true
},

@@ -61,0 +62,0 @@ "binary": {

@@ -32,12 +32,12 @@ # node-inet-xtoy

Throws `TypeError` when the number of arguments is not 1, or when `buf` is neither String nor Buffer, or when the length of `buf` si neither 4 nor 16.
Throws `TypeError` when the number of arguments is not 1, when `buf` is neither String nor Buffer or when the length of `buf` is neither 4 nor 16.
**inet_pton(ip)** converts an IPv4 or IPv6 address `buf` from text to binary form.
`ip` is expected to be a string. If `ip` is not a valid IP address, the function returns `null`.
`ip` is expected to be a string. The function returns `null` if `ip` is not a valid IP address.
Returns `Buffer` with binary form of the given `ip`, the length of the buffer is either 4 or 16 bytes.
Returns `Buffer` with the binary form of the given `ip`; the length of the buffer is either 4 or 16 bytes.
Throws `TypeError` when the number of arguments is not 1, or when `ip` is not a string.
Throws `TypeError` when the number of arguments is not 1 or when `ip` is not a string.
Throws `Error` when a call to [`inet_pton(3)`](http://man7.org/linux/man-pages/man3/inet_pton.3.html) fails.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc