{"_id":"@crshnburn/hexyz","_rev":"3-023466b1ace18591f609751b9c268e69","name":"@crshnburn/hexyz","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.0":{"name":"@crshnburn/hexyz","version":"1.0.0","description":"hexdump, binary pretty-printing, ebcdic","author":{"name":"Tim Becker","email":"tim.becker@kuriositaet.de"},"license":"MIT","main":"./hexy.js","repository":{"type":"git","url":"git://github.com/crshnburn/hexyz.git"},"publishConfig":{"access":"public"},"scripts":{"test":"node ./test.js"},"devDependencies":{"@types/node":"^10.12.6"},"dependencies":{"codepage":"^1.14.0"},"gitHead":"5e7e450e7a8e8c67933adc36c55a23e403ce258c","bugs":{"url":"https://github.com/crshnburn/hexyz/issues"},"homepage":"https://github.com/crshnburn/hexyz#readme","_id":"@crshnburn/hexyz@1.0.0","_nodeVersion":"12.18.3","_npmVersion":"6.14.6","dist":{"integrity":"sha512-vaXTdI5ufgeXCXzeiMzEMgyqm0CIhnLhU3IfjTE3wz0pQG/QX9dWKLy5126o3vi7IIkqeLkVQ/3i+A/IdDcJ7Q==","shasum":"a24895b2563a18b520e7eb0447a37ccc3fc6f0f4","tarball":"https://registry.npmjs.org/@crshnburn/hexyz/-/hexyz-1.0.0.tgz","fileCount":10,"unpackedSize":30990,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfMbPdCRA9TVsSAnZWagAATD4P/jtbf5r2xiLdbMEXbmas\niQOZ901WpB0ZwFlJMYcIZ/nr93MrLJqOHa4ooJJF6opPUoQNJffA4ZPRgDwS\nbQD9qOkM7jm9qg/t1ZGMgehT4vaJYUh4hNKfrAqAVuprziVFVKBrUjTfG+BJ\n2fkEYgT56CQun0YHNHcvuO/L1ktWocPAkDSZMEOJ85iOfR3wdqMFLhTF53Vg\nOQZFzg9FJhgw++xlebCYAv0t14pwPSdrWO1yEDDWISNx3AwmxsTd+go4jsV2\n4lwx9JB4xVPLVuGwP5BDlis06VnG48b9sCU8coSguZFUbQAhMwAhNn7CN+mb\nqKqJYKbYpjWRC1VzMJdw33+WWjfBnAXXvvQ4CHEk/ss/sX2lMtVitm6ejOdA\n6xkb+8D+ZUPjQ/6pvj7n2idWOCq5nfkbkuQYhj5ADvmWIa2fLjLffq8KePKN\niVUiiWqw2blrKIn6yI2tTjqtyuJN52UgNeoldjQFfdE54o7zgBStSJM5K5z1\nkKmMxkNbGZiUmu+1b1UfpXLXcc8DHcHzgs+Bj22x5VeZeD2RyCHdekgTltAw\n08R9cblDLTCYQy4H3ToLp+gdCjGDJty6wNb1bbTbp8PpP/KwFDzImvYKZbr3\nJV4rSbySyHyMR2RYvlkP7nFWCR0qflD9TgAcys8+ntzCHImcqBrKaKg3mc7O\nOK5i\r\n=J4HB\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDh1k3rO9cdfx/DDrs2n6HhW4fMSZyqCzo660u3I834JwIhANP8VS9NeaJik/K0b/UW+xPIhY9IJt47xPdxLHGpNJup"}]},"maintainers":[{"name":"crshnburn","email":"smithson@uk.ibm.com"}],"_npmUser":{"name":"crshnburn","email":"smithson@uk.ibm.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hexyz_1.0.0_1597092829525_0.8350080751456102"},"_hasShrinkwrap":false},"1.0.1":{"name":"@crshnburn/hexyz","version":"1.0.1","description":"hexdump, binary pretty-printing, ebcdic","author":{"name":"Tim Becker","email":"tim.becker@kuriositaet.de"},"license":"MIT","main":"./hexyz.js","repository":{"type":"git","url":"git://github.com/crshnburn/hexyz.git"},"publishConfig":{"access":"public"},"scripts":{"test":"node ./test.js"},"devDependencies":{"@types/node":"^10.12.6"},"dependencies":{"codepage":"^1.14.0"},"gitHead":"e7ac3de819b515cab1dd13530e2e8db9e8cac12f","bugs":{"url":"https://github.com/crshnburn/hexyz/issues"},"homepage":"https://github.com/crshnburn/hexyz#readme","_id":"@crshnburn/hexyz@1.0.1","_nodeVersion":"12.18.3","_npmVersion":"6.14.6","dist":{"integrity":"sha512-QZ/yfOOM6zWrgSdBZYvTg8qpa4vJKEnUgCLvVmU1WOIjsGDDpfxECwITjjv5pv7kWy+j/wjf+AQR4/jUQB5wmA==","shasum":"b04d6556a8f1e6a2607efd42f7f793e77dcdaa94","tarball":"https://registry.npmjs.org/@crshnburn/hexyz/-/hexyz-1.0.1.tgz","fileCount":10,"unpackedSize":30991,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfMbv9CRA9TVsSAnZWagAAlQAP/jdtyIDtw4Hj1gHi3CgG\nn2YdZbwBRc77s9By9tUWagsqvw4d0tR/CHrGKLu+DILqQsikWOXaC+l5lKZp\nNa619xkM7wh/1b0qGXwK5bmRkBnGvkcC79ZAXXN88ft5e/mJdKf34qiMZGt5\nav1/s9XeMURyG6qmzOkPObdEB+BJCltx1YkE9qkwUXu2DvPtnId9dvIga92y\n0aVWmNARRLd3+56YnBQlPzY5HgGBZkfGIWnCQk6mTRtoTiJ2vRuymHke3PNE\nWPtP7N2JzcyRURSivCjN8FD//2bTa8w9lebw5N34qbQDBh8rhI1G8CfZd2MG\n6ZYAcRaxG2C0SQX3Crhh35SIfq1v7Lb61f4mdKfCF/+wWIVPRkJhyfIjrAAa\n6Rm91AUeD8ctwX9tB/wpkhkGpSAVUQ1vyYHHipcmLHb416lsJs2ywv8kjnuj\nstSTKuF9g3bjgKM2b91tEjjI8fyhwf11NkLcUFb/x45OhBdsHrpjPt+PLBrd\nfC58LvavS9ZJPS8Ov2dK0QAgYdwmsu8zomXuhgcE5A0Q0dYWKypTajDQ2mN0\n8QEb0Hf1UMmahy/RDUoSFx+wAh59bIGQl+9dbgvsWvp9n0ajig9Yye3U5B9n\nhPCMV7ieQyoH09/W6BoT3VmGj0S5vM9WMbapWEFxnCCYRQ5ouXZSZe2y63yt\nRCiw\r\n=0zgW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG/WKXjrXHT51sJmAeDcBclajZx+gcMacqf5/huZg9peAiEAo5D6WBPbQY+IZxlRikW8kxhcktmN7ZtvFAczbb77p+s="}]},"maintainers":[{"name":"crshnburn","email":"smithson@uk.ibm.com"}],"_npmUser":{"name":"crshnburn","email":"smithson@uk.ibm.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hexyz_1.0.1_1597094909306_0.4012452964379052"},"_hasShrinkwrap":false},"1.0.2":{"name":"@crshnburn/hexyz","version":"1.0.2","description":"hexdump, binary pretty-printing, ebcdic","author":{"name":"Tim Becker","email":"tim.becker@kuriositaet.de"},"license":"MIT","main":"./hexyz.js","repository":{"type":"git","url":"git://github.com/crshnburn/hexyz.git"},"publishConfig":{"access":"public"},"scripts":{"test":"node ./test.js"},"devDependencies":{"@types/node":"^10.12.6"},"dependencies":{"codepage":"^1.14.0"},"gitHead":"f04090b828c70311c7ecfcd31df093ae787f479d","bugs":{"url":"https://github.com/crshnburn/hexyz/issues"},"homepage":"https://github.com/crshnburn/hexyz#readme","_id":"@crshnburn/hexyz@1.0.2","_nodeVersion":"12.18.3","_npmVersion":"6.14.6","dist":{"integrity":"sha512-pR5cVQZvjmV9L9mlX/Lg9JqocsmkYlrS5/9Ws7cIYhbShExI+w8Gtd4noYzaijffxLObf9Jt9hoZprbk9jqgxg==","shasum":"2b59e8a705a43c9c14d0b14afe6a0894f5209d6b","tarball":"https://registry.npmjs.org/@crshnburn/hexyz/-/hexyz-1.0.2.tgz","fileCount":10,"unpackedSize":30996,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfMl2DCRA9TVsSAnZWagAAqFEP/2+3A2LMTq4rqg/4e83U\n5q9Hv53xg8FBCCt9C2R1Yv+lMMyIO0e76+P72MnoQaLWUIR3oFk964ROgJ18\nzes6frsJIB3sJZ4c/LjZ6c1tOAaTplv/eg0fI/dsxdJ9/wZdZS3kdGZ2T28D\nlDr18GVonmn/Wcvwjnjx7dCwcrOiAO/TRxR3gYhLgoWMJA0iANVKEu5hmOVC\nkZ1FLMqXWqSS5FEQ6QaxVfkqS0JNYkiNuGXg200tvmmhh7SqIGsyrtx8gMlt\nud9C2QuEBJyGHpAeqdqs3hY4OUDzneY9HBUd+eCgSNwgVxxRoDoBUuIIcoLK\nTIRwThBo6m6JumwUZXwS0oDYvafL4MNO2cdUyav+IMabufXEtOeZWVtMgFHm\n0J6+Zrmf/MYS/tVVmz2IX99yJDckQL/ph33GpfGdY7RbenMpHYxhL1FMAUPg\nAFl9clp8bsenBMiyRqGgn6CBEXsxuhSsJrJ8romFD5HDEZ6z+zcH6NEfV06y\nLX70vb52qmF+SvbXlOZcAXW1e3LQ/dL5ZWD4wXfoTy9zT5gg9zdI4seh/6nd\noVAmkMPSrZ/TCM6nC94T+KLTdQqv1Ut+eyxsR5lRxhHy/M/HpAJq0jlaf9+S\nNt3Z74/Ok+fxS9Y1Mg98tsbcDIqrqHa/Gu6354ShKXJLe67LBPdgnAj9jbaI\noXqj\r\n=rpFa\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHoEGVA8DOTFt/RVkzRIx0qt8BnYfzYcSqntJGsoQLY9AiEAltCcdorSPrXZ+00ARYPPzqm8ZDEFdQ6uhfwHcaXq5og="}]},"maintainers":[{"name":"crshnburn","email":"smithson@uk.ibm.com"}],"_npmUser":{"name":"crshnburn","email":"smithson@uk.ibm.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hexyz_1.0.2_1597136258653_0.40728489751682906"},"_hasShrinkwrap":false}},"time":{"created":"2020-08-10T20:53:49.474Z","1.0.0":"2020-08-10T20:53:49.634Z","modified":"2022-04-05T01:57:08.685Z","1.0.1":"2020-08-10T21:28:29.509Z","1.0.2":"2020-08-11T08:57:38.745Z"},"maintainers":[{"name":"crshnburn","email":"smithson@uk.ibm.com"}],"description":"hexdump, binary pretty-printing, ebcdic","homepage":"https://github.com/crshnburn/hexyz#readme","repository":{"type":"git","url":"git://github.com/crshnburn/hexyz.git"},"author":{"name":"Tim Becker","email":"tim.becker@kuriositaet.de"},"bugs":{"url":"https://github.com/crshnburn/hexyz/issues"},"license":"MIT","readme":"# hexyz -- utility to create hex dumps from mainframe data\n\n[![Build Status](https://travis-ci.com/crshnburn/hexyz.svg?branch=master)](https://travis-ci.com/crshnburn/hexyz)\n\n`hexyz` is a javascript library that's easy to use to create hex dumps. It\nworks well in node and has cursory browser (more below) support. It contains a\nnumber of options to configure how the hex dump will end up looking. This library\nhas been forked from [hexy.js](https://github.com/a2800276/hexy.js) to add support\nfor ebcdic encoded bytes.\n\nIt should create a pleasant looking hex dumb by default:\n\n```javascript\nvar hexyz = require('hexyz'),\nb = Buffer.from(\"\\000\\001\\003\\005\\037\\012\\011bcdefghijklmnopqrstuvwxyz0123456789\")\n// or String or Array containing numbers ( bytes, i.e. < 0xFF )\n\nconsole.log(hexyz.hexyz(b))\n```\n\nresults in this dump:\n\n```text\n00000000: 0001 0305 1f0a 0962 6364 6566 6768 696a  .......bcdefghij\n00000010: 6b6c 6d6e 6f70 7172 7374 7576 7778 797a  klmnopqrstuvwxyz\n00000020: 3031 3233 3435 3637 3839                 0123456789\n```\n\nbut it's also possible to configure:\n\n* Line numbering\n* Line width\n* Format of byte grouping\n* Case of hex decimals\n* Presence of the ASCII and or EBCDIC annotation in the right column.\n\nThis means it's easy to generate exciting dumps like:\n\n```text\n0000000: 0001 0305 1f0a 0962  .... ...b\n0000008: 6364 6566 6768 696a  cdef ghij\n0000010: 6b6c 6d6e 6f70 7172  klmn opqr\n0000018: 7374 7576 7778 797a  stuv wxyz\n0000020: 3031 3233 3435 3637  0123 4567\n0000028: 3839                 89\n```\n\nor even:\n\n```text\n0000000: 00 01 03 05 1f 0a 09 62   63 64 65 66 67 68 69 6a\n0000010: 6b 6c 6d 6e 6f 70 71 72   73 74 75 76 77 78 79 7a\n0000020: 30 31 32 33 34 35 36 37   38 39\n```\n\nwith hexyz!\n\n## Accepted Input\n\nCurrently, input should be one of the following:\n\n* a `Buffer`\n* a `String`\n* an `Array` containing `Number`s.\n  These should fit into 8 bits, i.e. be smaller than 255.\n  Larger values are truncated (specifically `val & 0xff`)\n\n## Formatting Options\n\nFormatting options are configured by passing a `format` object to the `hexyz` function:\n\n```javascript\nvar format = {}\nformat.width = width // how many bytes per line, default 16\nformat.numbering = n // [\"hex_bytes\" | \"none\"],  default \"hex_bytes\"\nformat.format = f    // [\"eights\"|\"fours\"|\"twos\"|\"none\"], how many nibbles per group\n                     //                          default \"fours\"\nformat.caps = c      // [\"lower\"|\"upper\"],       default lower\nformat.annotate=a    // [\"ascii\"|\"ebcdic\"|\"ascii_ebcdic\"|\"none\"], ascii, ebcdic or\n                     // both annotations at end of line?\n                     //                          default \"ascii\"\nformat.prefix=p      // <string> something pretty to put in front of each line\n                     //                          default \"\"\nformat.indent=i      // <num> number of spaces to indent\n                     //                          default 0\nformat.html=true     // funky html divs 'n stuff! experimental.\n                     //                          default: false\nformat.offset = X    // generate hexdump based on X byte offset\n                     // into the provided source\n                     //                          default 0\nformat.length = Y    // process Y bytes of the provide source\n                     // starting at `offset`. -1 for all\n                     //                          default -1\nformat.display_offset = Z\n                     // add Z to the address prepended to each line\n                     // (note, even if `offset` is provided, addressing\n                     // is started at 0)\n                     //                          default 0\n\nconsole.log(hexyz.hexyz(buffer, format))\n```\n\nIn case you're really nerdy, you'll have noticed that the defaults correspond\nto how `xxd` formats it's output.\n\n## Installing\n\nEither use `npm` (or whatever compatible npm thingy people are using\nthese days) :\n\n```shell\nnpm install @crshnburn/hexyz\n```\n\nThis will install the lib which you'll be able to use like so:\n\n```javascript\nvar hexyz = require(\"hexyz\"),\nbuf  = // get Buffer from somewhere,\nstr  = hexy.hexy(buf)\n```\n\nIf you don't like `npm`, grab the source from github:\n\n[https://github.com/crshnburn/hexyz](https://github.com/crshnburn/hexyz)\n\n## Typescript\n\n```typescript\nimport {hexyz} from \"@crshnburn/hexyz\";\nconst buff = ...\nconsole.log(hexyz(buff));\n```\n\n## Thanks\n\n* [a2800276](https://github.com/a2800276) For publishing the original hexy.js\n","readmeFilename":"README.md"}