{"_id":"network-byte-order","_rev":"13-e4d693f3c6297aadbddcb3ab75312f26","name":"network-byte-order","description":"htonl, htons, ntohl, ntohs - convert values between host and network byte order.","dist-tags":{"latest":"0.2.0"},"versions":{"0.1.0":{"name":"network-byte-order","description":"htonl, htons, ntohl, ntohs - convert values between host and network byte order.","version":"0.1.0","main":"index.js","homepage":"https://github.com/mattcg/network-byte-order","implements":["CommonJS/Modules/1.0"],"contributors":[{"name":"Matthew Caruana Galizia","email":"m@m.cg"}],"keywords":["htonl","htons","ntohl","ntohs","byte order","endian","endianness","convert"],"bugs":{"url":"https://github.com/mattcg/network-byte-order/issues"},"repositories":[{"type":"git","url":"https://github.com/mattcg/network-byte-order.git"}],"licenses":[{"type":"Apache License, Version 2.0","url":"http://www.apache.org/licenses/LICENSE-2.0"}],"readme":"# JavaScript implementation of htonl, htons, ntohl, ntohs #\n\nThese routines are used for converting values between host and [network byte order](http://en.wikipedia.org/wiki/Endianness#Endianness_in_networking).\n\nDerived from [an implementation](http://blog.couchbase.com/starting-membase-nodejs) by Membase, Inc.\n\n### Usage ###\n\n### `htonl(b, i, v)` ###\n\nThe `htonl()` function converts the given unsigned 32-bit (long) integer from host byte order to network byte order (Little-Endian to Big-Endian).\n\n`b` is an [`Array`](https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array) of octets or a Node.JS [`Buffer`](http://nodejs.org/api/buffer.html).\n`i` is the zero-based index at which to write into `b`.\n`v` is the value to convert.\n\n### `htons(b, i, v)` ###\n\nThe `htons()` function converts the given unsigned 16-bit (short) integer from host byte order to network byte order (Little-Endian to Big-Endian).\n\n`b` is an [`Array`](https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array) of octets or a Node.JS [`Buffer`](http://nodejs.org/api/buffer.html).\n`i` is the zero-based index at which to write into `b`.\n`v` is the value to convert.\n\n### `ntohl(b, i)` ###\n\nThe `ntohl()` function converts the unsigned 32-bit (long) integer from network byte order to host byte order (Big-Endian to Little-Endian).\n\n`b` is an [`Array`](https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array) of octets or a Node.JS [`Buffer`](http://nodejs.org/api/buffer.html) to read the value from.\n`i` is the zero-based index at which to read from `b`.\n\n### `ntohlStr(s, i)` ###\n\n`s` is a `string` to the read value from.\n`i` is the zero-based index at which to read from `s`.\n\n### `ntohs(b, i)` ###\n\nThe `ntohs()` function converts the unsigned 16-bit (short) integer from network byte order to host byte order (Big-Endian to Little-Endian).\n\n`b` is an [`Array`](https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array) of octets or a Node.JS [`Buffer`](http://nodejs.org/api/buffer.html) to read the value from.\n`i` is the zero-based index at which to read from `b`.\n\n### `ntohsStr(s, i)` ###\n\n`s` is a `string` to the read value from.\n`i` is the zero-based index at which to read from `s`.\n\n## License ##\n\nLicensed under the [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0).\n","readmeFilename":"README.md","_id":"network-byte-order@0.1.0","dist":{"shasum":"caef172d2cd6cb2ef6445b21ce387dfb3a36e582","tarball":"https://registry.npmjs.org/network-byte-order/-/network-byte-order-0.1.0.tgz","integrity":"sha512-p4efulOuA6rzpGAIpdMpz1uKbYWb9I7VVgHD4OUrlKzZrbhVW0sYV6qTu0j11uROoKrS6CRz5B0qRLAS4AsZXA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCxXFDcoZbprBPTH0PM7Zjmws8vypcHLs85WjnajkfrnQIgEqwRnx38Bi26vy0+tDRyXPgwUsy+HfxTnN4Ya6mCyRY="}]},"_from":".","_npmVersion":"1.2.11","_npmUser":{"name":"mcg","email":"m@m.cg"},"maintainers":[{"name":"mcg","email":"m@m.cg"}]},"0.1.1":{"name":"network-byte-order","description":"htonl, htons, ntohl, ntohs - convert values between host and network byte order.","version":"0.1.1","main":"lib/network-byte-order.js","homepage":"https://github.com/mattcg/network-byte-order","implements":["CommonJS/Modules/1.0"],"contributors":[{"name":"Matthew Caruana Galizia","email":"m@m.cg"}],"keywords":["htonl","htons","ntohl","ntohs","byte order","endian","endianness","convert"],"bugs":{"url":"https://github.com/mattcg/network-byte-order/issues"},"repositories":[{"type":"git","url":"https://github.com/mattcg/network-byte-order.git"}],"licenses":[{"type":"Apache License, Version 2.0","url":"http://www.apache.org/licenses/LICENSE-2.0"}],"readme":"# JavaScript implementation of htonl, htons, ntohl, ntohs #\n\nThese routines are used for converting values between host and [network byte order](http://en.wikipedia.org/wiki/Endianness#Endianness_in_networking).\n\nDerived from [an implementation](http://blog.couchbase.com/starting-membase-nodejs) by Membase, Inc.\n\n## Usage ##\n\n### `htonl(b, i, v)` ###\n\nThe `htonl()` function converts the given unsigned 32-bit (long) integer from host byte order to network byte order (Little-Endian to Big-Endian).\n\n`b` is an [`Array`](https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array) of octets or a Node.JS [`Buffer`](http://nodejs.org/api/buffer.html).\n`i` is the zero-based index at which to write into `b`.\n`v` is the value to convert.\n\n### `htons(b, i, v)` ###\n\nThe `htons()` function converts the given unsigned 16-bit (short) integer from host byte order to network byte order (Little-Endian to Big-Endian).\n\n`b` is an [`Array`](https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array) of octets or a Node.JS [`Buffer`](http://nodejs.org/api/buffer.html).\n`i` is the zero-based index at which to write into `b`.\n`v` is the value to convert.\n\n### `ntohl(b, i)` ###\n\nThe `ntohl()` function converts the unsigned 32-bit (long) integer from network byte order to host byte order (Big-Endian to Little-Endian).\n\n`b` is an [`Array`](https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array) of octets or a Node.JS [`Buffer`](http://nodejs.org/api/buffer.html) to read the value from.\n`i` is the zero-based index at which to read from `b`.\n\n### `ntohlStr(s, i)` ###\n\n`s` is a `string` to the read value from.\n`i` is the zero-based index at which to read from `s`.\n\n### `ntohs(b, i)` ###\n\nThe `ntohs()` function converts the unsigned 16-bit (short) integer from network byte order to host byte order (Big-Endian to Little-Endian).\n\n`b` is an [`Array`](https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array) of octets or a Node.JS [`Buffer`](http://nodejs.org/api/buffer.html) to read the value from.\n`i` is the zero-based index at which to read from `b`.\n\n### `ntohsStr(s, i)` ###\n\n`s` is a `string` to the read value from.\n`i` is the zero-based index at which to read from `s`.\n\n## License ##\n\nLicensed under the [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0).\n","readmeFilename":"README.md","_id":"network-byte-order@0.1.1","dist":{"shasum":"476c5500c258e16bffb29e9606d7bbf2e8a77fc7","tarball":"https://registry.npmjs.org/network-byte-order/-/network-byte-order-0.1.1.tgz","integrity":"sha512-c+z+eMPkZDmh4A4Ou5rGYm+sg9JpIaxiq4q7ZQdvcfRTYwRLzdAlb67Hc/e7UH8Y7GrLQYbOV1BA0ccKhDqNCA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHiDlD6TOv3f7qdJFgFdCDoEQDKmEEjrZONlvyLagBZfAiB9r0CYxKivSWwrUrPcYF1/+VtNGRBwjYaypv5G3Xu6aA=="}]},"_from":".","_npmVersion":"1.2.14","_npmUser":{"name":"mcg","email":"m@m.cg"},"maintainers":[{"name":"mcg","email":"m@m.cg"}]},"0.1.2":{"name":"network-byte-order","description":"htonl, htons, ntohl, ntohs - convert values between host and network byte order.","version":"0.1.2","main":"lib/network-byte-order.js","homepage":"https://github.com/mattcg/network-byte-order","implements":["CommonJS/Modules/1.0"],"contributors":[{"name":"Matthew Caruana Galizia","email":"m@m.cg"}],"keywords":["htonl","htons","ntohl","ntohs","byte order","endian","endianness","convert"],"bugs":{"url":"https://github.com/mattcg/network-byte-order/issues"},"repository":{"type":"git","url":"https://github.com/mattcg/network-byte-order.git"},"licenses":[{"type":"Apache License, Version 2.0","url":"http://www.apache.org/licenses/LICENSE-2.0"}],"readme":"# JavaScript implementation of htonl, htons, ntohl, ntohs #\n\nThese routines are used for converting values between host and [network byte order](http://en.wikipedia.org/wiki/Endianness#Endianness_in_networking).\n\nDerived from [an implementation](http://blog.couchbase.com/starting-membase-nodejs) by Membase, Inc.\n\n## Usage ##\n\n### htonl(b, i, v) ###\n\nThe `htonl()` function converts the given unsigned 32-bit (long) integer from host byte order to network byte order (Little-Endian to Big-Endian).\n\n`b` is an [`Array`](https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array) of octets or a Node.JS [`Buffer`](http://nodejs.org/api/buffer.html).\n`i` is the zero-based index at which to write into `b`.\n`v` is the value to convert.\n\n### htons(b, i, v) ###\n\nThe `htons()` function converts the given unsigned 16-bit (short) integer from host byte order to network byte order (Little-Endian to Big-Endian).\n\n`b` is an [`Array`](https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array) of octets or a Node.JS [`Buffer`](http://nodejs.org/api/buffer.html).\n`i` is the zero-based index at which to write into `b`.\n`v` is the value to convert.\n\n### ntohl(b, i) ###\n\nThe `ntohl()` function converts the unsigned 32-bit (long) integer from network byte order to host byte order (Big-Endian to Little-Endian).\n\n`b` is an [`Array`](https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array) of octets or a Node.JS [`Buffer`](http://nodejs.org/api/buffer.html) to read the value from.\n`i` is the zero-based index at which to read from `b`.\n\n### ntohlStr(s, i) ###\n\n`s` is a `string` to the read value from.\n`i` is the zero-based index at which to read from `s`.\n\n### ntohs(b, i) ###\n\nThe `ntohs()` function converts the unsigned 16-bit (short) integer from network byte order to host byte order (Big-Endian to Little-Endian).\n\n`b` is an [`Array`](https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array) of octets or a Node.JS [`Buffer`](http://nodejs.org/api/buffer.html) to read the value from.\n`i` is the zero-based index at which to read from `b`.\n\n### ntohsStr(s, i) ###\n\n`s` is a `string` to the read value from.\n`i` is the zero-based index at which to read from `s`.\n\n## License ##\n\nLicensed under the [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0).\n","readmeFilename":"README.md","_id":"network-byte-order@0.1.2","dist":{"shasum":"8be9ff9a0940bdb309c0830d9e0e7eb972ca8c3a","tarball":"https://registry.npmjs.org/network-byte-order/-/network-byte-order-0.1.2.tgz","integrity":"sha512-9QyKNRyjER4jQvwRdTPjJTS1F8YcACJc1uy+uM40Psul4eDdBotAjxF6RvfjJ5l3fOW1ZlyAEbIYs90ART+QsA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDYX4iZBF2+Is7s4I1LPrbu4GBiG4b+gmSHtw4L6aWB3QIhAOGZvEqA3h+YPpyMQ7W4tO70TmEZ83+DiXJ4Ivl6pCee"}]},"_from":".","_npmVersion":"1.2.21","_npmUser":{"name":"mcg","email":"m@m.cg"},"maintainers":[{"name":"mcg","email":"m@m.cg"}]},"0.2.0":{"name":"network-byte-order","description":"htonl, htons, ntohl, ntohs - convert values between host and network byte order.","version":"0.2.0","main":"lib/index.js","homepage":"https://github.com/mattcg/network-byte-order","implements":["CommonJS/Modules/1.0"],"contributors":[{"name":"Matthew Caruana Galizia","email":"m@m.cg"}],"keywords":["htonl","htons","ntohl","ntohs","byte order","endian","endianness","convert"],"bugs":{"url":"https://github.com/mattcg/network-byte-order/issues"},"repository":{"type":"git","url":"https://github.com/mattcg/network-byte-order.git"},"licenses":[{"type":"Apache License, Version 2.0","url":"http://www.apache.org/licenses/LICENSE-2.0"}],"devDependencies":{"jscoverage":"0.x","mocha":"1.x","mocha-lcov-reporter":"0.x","coveralls":"2.x"},"readme":"# JavaScript implementation of htonl, htons, ntohl, ntohs #\n\n[![Build Status](https://travis-ci.org/mattcg/network-byte-order.png?branch=master)](https://travis-ci.org/mattcg/network-byte-order)\n[![Coverage Status](https://coveralls.io/repos/mattcg/network-byte-order/badge.png)](https://coveralls.io/r/mattcg/network-byte-order)\n\nThese routines are used for converting values between host and [network byte order](http://en.wikipedia.org/wiki/Endianness#Endianness_in_networking).\n\nDerived from [an implementation](http://blog.couchbase.com/starting-membase-nodejs) by Membase, Inc.\n\n## Usage ##\n\n### htonl(b, i, v) ###\n\nThe `htonl()` function converts the given unsigned 32-bit (long) integer from host byte order to network byte order (Little-Endian to Big-Endian).\n\n`b` is an [`Array`](https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array) of octets or a Node.JS [`Buffer`](http://nodejs.org/api/buffer.html).\n`i` is the zero-based index at which to write into `b`.\n`v` is the value to convert.\n\n### htons(b, i, v) ###\n\nThe `htons()` function converts the given unsigned 16-bit (short) integer from host byte order to network byte order (Little-Endian to Big-Endian).\n\n`b` is an [`Array`](https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array) of octets or a Node.JS [`Buffer`](http://nodejs.org/api/buffer.html).\n`i` is the zero-based index at which to write into `b`.\n`v` is the value to convert.\n\n### ntohl(b, i) ###\n\nThe `ntohl()` function converts the unsigned 32-bit (long) integer from network byte order to host byte order (Big-Endian to Little-Endian).\n\n`b` is an [`Array`](https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array) of octets or a Node.JS [`Buffer`](http://nodejs.org/api/buffer.html) to read the value from.\n`i` is the zero-based index at which to read from `b`.\n\n### ntohlStr(s, i) ###\n\n`s` is a `string` to the read value from.\n`i` is the zero-based index at which to read from `s`.\n\n### ntohs(b, i) ###\n\nThe `ntohs()` function converts the unsigned 16-bit (short) integer from network byte order to host byte order (Big-Endian to Little-Endian).\n\n`b` is an [`Array`](https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array) of octets or a Node.JS [`Buffer`](http://nodejs.org/api/buffer.html) to read the value from.\n`i` is the zero-based index at which to read from `b`.\n\n### ntohsStr(s, i) ###\n\n`s` is a `string` to the read value from.\n`i` is the zero-based index at which to read from `s`.\n\n## License ##\n\nLicensed under the [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0).\n","readmeFilename":"README.md","_id":"network-byte-order@0.2.0","dist":{"shasum":"6ac11bf44bf610daeddbe90a09a5c817c6e0d2b3","tarball":"https://registry.npmjs.org/network-byte-order/-/network-byte-order-0.2.0.tgz","integrity":"sha512-oUG/1/fdDdv4Xfkct2wxVWuF/70ZUWsv9ZYfkoxeQFnU1Q5y4H2huUzJD5Np7Xbi/baefJMnnIiZs8YFqMkQaA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCe3zDDHYAUo62tK5cd7F2dBokACkzNU8B2dM0Mfk+pvgIhAPrxgcDqzTba4tk4tOZCgbEFZLZ6/wrzxl6v6BNvJH78"}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"mcg","email":"m@m.cg"},"maintainers":[{"name":"mcg","email":"m@m.cg"}]}},"readme":"# JavaScript implementation of htonl, htons, ntohl, ntohs #\n\nThese routines are used for converting values between host and [network byte order](http://en.wikipedia.org/wiki/Endianness#Endianness_in_networking).\n\nDerived from [an implementation](http://blog.couchbase.com/starting-membase-nodejs) by Membase, Inc.\n\n### Usage ###\n\n### `htonl(b, i, v)` ###\n\nThe `htonl()` function converts the given unsigned 32-bit (long) integer from host byte order to network byte order (Little-Endian to Big-Endian).\n\n`b` is an [`Array`](https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array) of octets or a Node.JS [`Buffer`](http://nodejs.org/api/buffer.html).\n`i` is the zero-based index at which to write into `b`.\n`v` is the value to convert.\n\n### `htons(b, i, v)` ###\n\nThe `htons()` function converts the given unsigned 16-bit (short) integer from host byte order to network byte order (Little-Endian to Big-Endian).\n\n`b` is an [`Array`](https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array) of octets or a Node.JS [`Buffer`](http://nodejs.org/api/buffer.html).\n`i` is the zero-based index at which to write into `b`.\n`v` is the value to convert.\n\n### `ntohl(b, i)` ###\n\nThe `ntohl()` function converts the unsigned 32-bit (long) integer from network byte order to host byte order (Big-Endian to Little-Endian).\n\n`b` is an [`Array`](https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array) of octets or a Node.JS [`Buffer`](http://nodejs.org/api/buffer.html) to read the value from.\n`i` is the zero-based index at which to read from `b`.\n\n### `ntohlStr(s, i)` ###\n\n`s` is a `string` to the read value from.\n`i` is the zero-based index at which to read from `s`.\n\n### `ntohs(b, i)` ###\n\nThe `ntohs()` function converts the unsigned 16-bit (short) integer from network byte order to host byte order (Big-Endian to Little-Endian).\n\n`b` is an [`Array`](https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array) of octets or a Node.JS [`Buffer`](http://nodejs.org/api/buffer.html) to read the value from.\n`i` is the zero-based index at which to read from `b`.\n\n### `ntohsStr(s, i)` ###\n\n`s` is a `string` to the read value from.\n`i` is the zero-based index at which to read from `s`.\n\n## License ##\n\nLicensed under the [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0).\n","maintainers":[{"name":"mcg","email":"m@m.cg"}],"time":{"modified":"2022-06-21T01:14:10.005Z","created":"2013-03-04T20:59:21.935Z","0.1.0":"2013-03-04T20:59:23.110Z","0.1.1":"2013-03-13T17:01:35.122Z","0.1.2":"2013-05-23T21:48:27.274Z","0.2.0":"2013-09-16T23:11:58.194Z"},"repository":{"type":"git","url":"https://github.com/mattcg/network-byte-order.git"},"users":{"stdarg":true,"cocopas":true}}