{"_id":"endian-toggle","_rev":"898981","name":"endian-toggle","description":"toggle the byte ordering of a buffer","dist-tags":{"latest":"0.0.0"},"maintainers":[{"name":"substack","email":"mail@substack.net"}],"time":{"modified":"2024-07-21T23:31:01.000Z","created":"2012-11-01T02:12:13.807Z","0.0.0":"2012-11-01T02:12:13.807Z"},"users":{},"author":{"name":"James Halliday","email":"mail@substack.net","url":"http://substack.net"},"repository":{"type":"git","url":"git://github.com/substack/endian-toggle.git"},"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":{"shasum":"e5cc7578b1032d6ee01eafcd73765db0db4dc0a6","tarball":"http://registry-npm.ywwl.com/endian-toggle/download/endian-toggle-0.0.0.tgz","integrity":"sha512-ShfqhXeHRE4TmggSlHXG8CMGIcsOsqDw/GcoPcosToE59Rm9e4aXaMhEQf2kPBsBRrKem1bbOAv5gOKnkliMFQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDXc1iV2Syb+lGq+1Mcx5Fxk3tyOgtUHclGecCImX9x0AiAfRUzSx9XBG3CeVoGgENmGBby/2sHTAVfa/yKXNQeZ+w=="}],"size":1975,"noattachment":false,"key":"/endian-toggle/-/endian-toggle-0.0.0.tgz"},"_npmVersion":"1.1.59","_npmUser":{"name":"substack","email":"mail@substack.net"},"maintainers":[{"name":"substack","email":"mail@substack.net"}],"publish_time":1351735933807,"_cnpm_publish_time":1351735933807}},"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\n","_attachments":{},"homepage":"https://github.com/substack/endian-toggle","license":"MIT"}