{"versions":{"0.0.0":{"name":"endian-toggle","version":"0.0.0","description":"toggle the byte ordering of a buffer","main":"index.js","directories":{"example":"example","test":"test"},"devDependencies":{"tap":"~0.3.0"},"scripts":{"test":"tap test/*.js"},"repository":{"type":"git","url":"git://github.com/substack/endian-toggle.git"},"homepage":"https://github.com/substack/endian-toggle","keywords":["endian","binary","byte","order","encoding"],"author":{"name":"James Halliday","email":"mail@substack.net","url":"http://substack.net"},"license":"MIT","_id":"endian-toggle@0.0.0","dist":{"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/endian-toggle/-/endian-toggle-0.0.0.tgz","shasum":"e5cc7578b1032d6ee01eafcd73765db0db4dc0a6","size":1975,"noattachment":false,"integrity":"sha512-ShfqhXeHRE4TmggSlHXG8CMGIcsOsqDw/GcoPcosToE59Rm9e4aXaMhEQf2kPBsBRrKem1bbOAv5gOKnkliMFQ=="},"_npmVersion":"1.1.59","_npmUser":{"name":"anonymous","email":"mail@substack.net"},"maintainers":[{"name":"anonymous","email":"mail@substack.net"}],"publish_time":1351735933807,"_hasShrinkwrap":false,"_cnpm_publish_time":1351735933807,"_cnpmcore_publish_time":"2021-12-16T22:49:12.946Z","contributors":[]}},"dist-tags":{"latest":"0.0.0"},"name":"endian-toggle","time":{"created":"2022-01-26T22:36:47.840Z","modified":"2022-11-11T06:36:32.805Z","0.0.0":"2012-11-01T02:12:13.807Z"},"readme":"# endian-toggle\n\nToggle the byte ordering of a buffer.\n\n[![build status](https://secure.travis-ci.org/substack/endian-toggle.png)](http://travis-ci.org/substack/endian-toggle)\n\n# example\n\n``` js\nvar toggle = require('endian-toggle');\nvar buf = new Buffer('abcd');\n\nconsole.dir(buf);\nconsole.dir(toggle(buf, 16));\n```\n\n***\n\n```\n<Buffer 61 62 63 64>\n<Buffer 62 61 64 63>\n```\n\n# methods\n\n``` js\nvar toggle = require('endian-toggle')\n```\n\n## toggle(buf, bits)\n\nReturn a new buffer from `buf` with toggled endianness at `bits` many bits.\n\n# install\n\nWith [npm](https://npmjs.org) do:\n\n```\nnpm install endian-toggle\n```\n\n# license\n\nMIT","users":{}}