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

network-byte-order

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

network-byte-order - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

component.json

12

package.json
{
"name": "network-byte-order",
"description": "htonl, htons, ntohl, ntohs - convert values between host and network byte order.",
"version": "0.1.1",
"version": "0.1.2",
"main": "lib/network-byte-order.js",

@@ -20,8 +20,6 @@ "homepage": "https://github.com/mattcg/network-byte-order",

},
"repositories": [
{
"type": "git",
"url": "https://github.com/mattcg/network-byte-order.git"
}
],
"repository": {
"type": "git",
"url": "https://github.com/mattcg/network-byte-order.git"
},
"licenses": [

@@ -28,0 +26,0 @@ {

@@ -9,3 +9,3 @@ # JavaScript implementation of htonl, htons, ntohl, ntohs #

### `htonl(b, i, v)` ###
### htonl(b, i, v) ###

@@ -18,3 +18,3 @@ The `htonl()` function converts the given unsigned 32-bit (long) integer from host byte order to network byte order (Little-Endian to Big-Endian).

### `htons(b, i, v)` ###
### htons(b, i, v) ###

@@ -27,3 +27,3 @@ The `htons()` function converts the given unsigned 16-bit (short) integer from host byte order to network byte order (Little-Endian to Big-Endian).

### `ntohl(b, i)` ###
### ntohl(b, i) ###

@@ -35,3 +35,3 @@ The `ntohl()` function converts the unsigned 32-bit (long) integer from network byte order to host byte order (Big-Endian to Little-Endian).

### `ntohlStr(s, i)` ###
### ntohlStr(s, i) ###

@@ -41,3 +41,3 @@ `s` is a `string` to the read value from.

### `ntohs(b, i)` ###
### ntohs(b, i) ###

@@ -49,3 +49,3 @@ The `ntohs()` function converts the unsigned 16-bit (short) integer from network byte order to host byte order (Big-Endian to Little-Endian).

### `ntohsStr(s, i)` ###
### ntohsStr(s, i) ###

@@ -52,0 +52,0 @@ `s` is a `string` to the read value from.

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