{"_id":"concise-buffer","_rev":"3-611e6eb79b2baf29a1f16bd9c5a68a9e","name":"concise-buffer","dist-tags":{"latest":"0.0.3"},"versions":{"0.0.1":{"name":"concise-buffer","version":"0.0.1","description":"Concisely serialise the beginning and end of a Node buffer for logging.","main":"source/main.js","repository":{"type":"git","url":"git+https://github.com/Anadian/concise-buffer.git"},"keywords":["concise","concisely","serialize","serialise","pretty","print","head","tail","buffer","node","free","libre","open","source","mit","logging"],"author":{"name":"Anadian"},"license":"MIT","bugs":{"url":"https://github.com/Anadian/concise-buffer/issues"},"homepage":"https://github.com/Anadian/concise-buffer#readme","devDependencies":{"ava":"^3.15.0","coveralls":"^3.1.0","extract-documentation-comments":"^0.3.0","hjson":"^3.2.2","npm-check-updates":"^11.1.3","nyc":"^15.1.0","standard-version":"^9.1.0"},"scripts":{"test":"ava -v ./source/main.test.js","lint":"eslint ./source/main.js","generate-docs":"extract-documentation-comments -I source/main.js -O API.md","update-config":"hjson -j ci/github-actions.hjson | json2yaml --preserve-key-order -o .github/workflows/ci.yml","update-deps":"npm-check-updates -u","release":"standard-version","publish-release":"git push --follow-tags origin master && npm publish"},"bin":{"concise-buffer":"source/main.js"},"engines":{"node":">=12"},"eslintConfig":{"env":{"commonjs":true,"es6":true,"node":true},"extends":"eslint:recommended","globals":{"Atomics":"readonly","SharedArrayBuffer":"readonly"},"parserOptions":{"ecmaVersion":11},"rules":{"no-unused-vars":["warn"],"no-useless-escape":"off","no-empty":"warn"}},"standard-version":{"types":[{"type":"build","section":"Build","hidden":false},{"type":"ci","section":"Continuous Integration","hidden":false},{"type":"chore","section":"Chores","hidden":false},{"type":"docs","section":"Documentation","hidden":false},{"type":"feat","section":"Features","hidden":false},{"type":"fix","section":"Bug Fixes","hidden":false},{"type":"perf","section":"Performance","hidden":false},{"type":"refactor","section":"Refactoring","hidden":false},{"type":"style","section":"Code Style","hidden":false},{"type":"test","section":"Tests","hidden":false}]},"gitHead":"2002dd4bccb7b96315f8466f1ae367ced68cf739","_id":"concise-buffer@0.0.1","_nodeVersion":"13.14.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-pMLHREAPbnjQeudPNGNMJgBoJmC2ktjNsR38CnuOAqenKPysT+8dUTcRgLRHcqIsMdTR/wpmKKRYYARH4fFkAA==","shasum":"c73e0cc2dc9b0ba813429eebe9e2b5ce3ec0ccf2","tarball":"https://registry.npmjs.org/concise-buffer/-/concise-buffer-0.0.1.tgz","fileCount":10,"unpackedSize":23424,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgKxEXCRA9TVsSAnZWagAAM9UQAIyuD3RcEyDGyC7BtEIu\nU+QjQvrYiC6uNEdnK5p4amI8shg5eJ7HAei8D+lqVDGX4vOpotH8B+kpClIP\njJwcl7KzYmDcgTFjVir5iYa9AhDABehkRPDA7+Yk3IRIdddLYlqSqwd1Aq+E\nRZrJ8BtCJhvspvWxGoQ2kjy7vMfPiLjdnuRP2me8fjiq6KFfxfqw1bfZFITB\n565xo6xXm6MvjJfME5LTpVk3BaUiRH5GorH7be2balkpm6Ns5eAuykBdwsPy\nzUdd0rYZkut8q/S4gLwuKqeE09bxZclU4aXSYPjsMOg4U6hlCUh91prtl85U\nUWjwkALaFPCC3caAK6JlaD+00H5DSyU4Bj3UMMMvFTVhIzjMr5822D06p9KT\nPwnkq/dXq3tIf9joRlyv23UTxsTPk0n/SOOqGL+MCaGOuDQbT3Kn5FsPQtbx\n+5bkTid5bQnntp6wUH+XvObEOrbPdZl6kfuG7pFQCXk7WYpG/uFFe/26PhQ/\nzj9Q+ib16/XhjWcz/lFGnbLxf7+WlqSt/OBYAd0nqHdH5pUmPnps0X0PbBw4\n0YpyVOFwFzJSZCG9nLKWTv+/9hFbdNndzSlfDj8AXNpx3gAcNzSTd5JN5V5G\nlNiaoavuGUkQu6tQvLl825y2mbfhDB36k4bPK6HrP+SPpt8RRkK5RoLlfp1Q\nCy1+\r\n=f3Cm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEzmtub9IStY42adbk/XNc6T33+Wjo5fl6m3ykLSZPMiAiEA56XKjhfmvaGbUOo2PWASSB7j+7AcV+NLZGtFXmTbAwE="}]},"_npmUser":{"name":"anad","email":"supercamman20@gmail.com"},"directories":{},"maintainers":[{"name":"anad","email":"supercamman20@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/concise-buffer_0.0.1_1613435158100_0.4411311003848095"},"_hasShrinkwrap":false},"0.0.2":{"name":"concise-buffer","version":"0.0.2","description":"Concisely serialise the beginning and end of a Node buffer for logging.","main":"source/main.js","repository":{"type":"git","url":"git+https://github.com/Anadian/concise-buffer.git"},"keywords":["concise","concisely","serialize","serialise","pretty","print","head","tail","buffer","node","free","libre","open","source","mit","logging"],"author":{"name":"Anadian"},"license":"MIT","bugs":{"url":"https://github.com/Anadian/concise-buffer/issues"},"homepage":"https://github.com/Anadian/concise-buffer#readme","devDependencies":{"ava":"^3.15.0","coveralls":"^3.1.0","extract-documentation-comments":"^0.3.0","hjson":"^3.2.2","npm-check-updates":"^11.1.3","nyc":"^15.1.0","standard-version":"^9.1.0"},"scripts":{"test":"ava -v ./source/main.test.js","lint":"eslint ./source/main.js","generate-docs":"extract-documentation-comments -I source/main.js -O API.md","update-config":"hjson -j ci/github-actions.hjson | json2yaml --preserve-key-order -o .github/workflows/ci.yml","update-deps":"npm-check-updates -u","release":"standard-version","publish-release":"git push --follow-tags origin master && npm publish"},"bin":{"concise-buffer":"source/main.js"},"engines":{"node":">=12"},"eslintConfig":{"env":{"commonjs":true,"es6":true,"node":true},"extends":"eslint:recommended","globals":{"Atomics":"readonly","SharedArrayBuffer":"readonly"},"parserOptions":{"ecmaVersion":11},"rules":{"no-unused-vars":["warn"],"no-useless-escape":"off","no-empty":"warn"}},"standard-version":{"types":[{"type":"build","section":"Build","hidden":false},{"type":"ci","section":"Continuous Integration","hidden":false},{"type":"chore","section":"Chores","hidden":false},{"type":"docs","section":"Documentation","hidden":false},{"type":"feat","section":"Features","hidden":false},{"type":"fix","section":"Bug Fixes","hidden":false},{"type":"perf","section":"Performance","hidden":false},{"type":"refactor","section":"Refactoring","hidden":false},{"type":"style","section":"Code Style","hidden":false},{"type":"test","section":"Tests","hidden":false}]},"gitHead":"d8da087d9bc4300794ba4ddc3ab3ab568205948f","_id":"concise-buffer@0.0.2","_nodeVersion":"13.14.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-qHMmgMrCCsHAMLoS7/fIfku7Fw/C/oWBaw+QGqjXIuBrE7FbeDIPC/wvSmkQrE3wmQ0DSvLWCZqjInMas8w8Bw==","shasum":"8afcc2f6edb95c06e428dde536f693cba359cc24","tarball":"https://registry.npmjs.org/concise-buffer/-/concise-buffer-0.0.2.tgz","fileCount":10,"unpackedSize":23977,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgKxWdCRA9TVsSAnZWagAAu4cP/Rj9vCNKuVY28iwUHH6+\ndiMX/DPDzarq7KMN7Y/OSpJvx3YVKE0YEJkCVn3IB1jVGV3Z42tHtmBkkVM9\nKmoOlmSB25RlcV+UV8TUNjDaktc9CGY9FGVDDsQAmZdGMkJb6lCnt1XPMpsA\nKt6OwtF1qUVYaC5pLs1I8B4Lc6a1yOO/NmCvTaYrQFD/5ZUoVVFFBgDq0ooS\nb2HDdbHfRx5fr5/bdgifUWOzPw2pKBrvQO8I0HTrKzyPQqkvzh43btzMYIbq\n5BezWj76FWATkMqmHT8w3gZndC9iue5/7i9cuxqTFNX1uYrYnAWlLrj+Qqkx\nHOiawfEaSF+L65Yt7fXDYQrX2J+QspbWx7gnSU4BFxZZtUg29tj8pwnN90YC\npSfvO6F3H7REd7chouMBKFxZ+mg+cwicxF4Sa1SI5WmwR0TCIdL9KrxDMW8m\nDpDv/+Iq/gdqloXaF0auX13fnWqs0Wkqf+3dbGGdDTEzggX3KJTcw0BJKrHY\nOp9+ClxMAQg3E/a13KLqgYay0sF5tEvZNq0zrffLPF851sMgxEuyCWEwspji\np86PXzKtA5LyT5Dpns5R3yb6a/mvJkiQSNP1cEAXHKHNcbN4qLgc1uxAo2PV\nqcnzA4gvS/OJLnKzhNaNOjdOXr6QJePReD05RzEyKkJT0eg34NJMb0x0g5lT\nNF9o\r\n=XcgX\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBaPLOx0/5q+gX0L9pwyu34Aos5300sefgfmC8zPgKaSAiAqnNTMzp0ay6i2XbYshr8Ryka0LbHm7qVZ95dxK1a5Qg=="}]},"_npmUser":{"name":"anad","email":"supercamman20@gmail.com"},"directories":{},"maintainers":[{"name":"anad","email":"supercamman20@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/concise-buffer_0.0.2_1613436316977_0.24959604342140618"},"_hasShrinkwrap":false},"0.0.3":{"name":"concise-buffer","version":"0.0.3","description":"Concisely serialise the beginning and end of a Node buffer for logging.","main":"source/main.js","repository":{"type":"git","url":"git+https://github.com/Anadian/concise-buffer.git"},"keywords":["concise","concisely","serialize","serialise","pretty","print","head","tail","buffer","node","free","libre","open","source","mit","logging"],"author":{"name":"Anadian"},"license":"MIT","bugs":{"url":"https://github.com/Anadian/concise-buffer/issues"},"homepage":"https://github.com/Anadian/concise-buffer#readme","devDependencies":{"ava":"^3.15.0","coveralls":"^3.1.0","extract-documentation-comments":"^0.3.0","hjson":"^3.2.2","npm-check-updates":"^11.1.3","nyc":"^15.1.0","standard-version":"^9.1.0"},"scripts":{"test":"ava -v ./source/main.test.js","lint":"eslint ./source/main.js","generate-docs":"extract-documentation-comments -I source/main.js -O API.md","update-config":"hjson -j ci/github-actions.hjson | json2yaml --preserve-key-order -o .github/workflows/ci.yml","update-deps":"npm-check-updates -u","release":"standard-version","publish-release":"git push --follow-tags origin master && npm publish"},"bin":{"concise-buffer":"source/main.js"},"engines":{"node":">=12"},"eslintConfig":{"env":{"commonjs":true,"es6":true,"node":true},"extends":"eslint:recommended","globals":{"Atomics":"readonly","SharedArrayBuffer":"readonly"},"parserOptions":{"ecmaVersion":11},"rules":{"no-unused-vars":["warn"],"no-useless-escape":"off","no-empty":"warn"}},"standard-version":{"types":[{"type":"build","section":"Build","hidden":false},{"type":"ci","section":"Continuous Integration","hidden":false},{"type":"chore","section":"Chores","hidden":false},{"type":"docs","section":"Documentation","hidden":false},{"type":"feat","section":"Features","hidden":false},{"type":"fix","section":"Bug Fixes","hidden":false},{"type":"perf","section":"Performance","hidden":false},{"type":"refactor","section":"Refactoring","hidden":false},{"type":"style","section":"Code Style","hidden":false},{"type":"test","section":"Tests","hidden":false}]},"gitHead":"62696a296e5a425a347f3269b8d59ae81ac9f80c","_id":"concise-buffer@0.0.3","_nodeVersion":"13.14.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-dU+NV0F+6FBrqv6rARqd8EFL8Sxuh2m3MB3DqHJG0P0vmVddsMwr6S+iDkLwnGCR7Kq/fhxbHJA6jdY55ywWqw==","shasum":"1fa024a43b0811c146aee1061c644c6ed5add294","tarball":"https://registry.npmjs.org/concise-buffer/-/concise-buffer-0.0.3.tgz","fileCount":10,"unpackedSize":24542,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgKxfrCRA9TVsSAnZWagAAsAoP/ikAYTF6cdzermRvfkhb\n1RGYqdZHfPcoNkq+QWr0tcyc8l1rzQTVi1N9u6zDbHi93HUf5FL82UBiWVm1\n0hHluG9SuQIX+M6cCio7mhS6XOYZOm48tgpYWTdjJf8g8sL5lHmSz1emNzbO\nkRh6K/YD0IFwbZUKexJTi6QRj3AAOsveJhSfblpMJnEogqCeW92eIfkv40OV\nX5I+XSKSK+yBzSVXbydGRovzYkhR6ql80h+Qj5hi3nImeCjsvnKqiK7MPeWG\npFH+lImMiEGgA2i6Bj/z72A4lpXkITre1SlNo91a30PjlLhfgxrUn0xFWFhd\nyNoEXpGwL+nqR3ZsMq+XjnOpHT4Gu+SJP/VQmJemUbDgtaRKcs+hlOoeSMAK\nDDAYOT8Z5IJpU8DRRiH+93l73JZxN2g92SepRPAd4ucQz+Bhs7CNxTa2UNkT\ntprHkncWt3kT1rjZK4bs5XY6rlzKzPdTkdgiFX/xhGFqxIQ9r5l62WYM5MjZ\n/P43EYoZpa6WtuqKymBWphrNH1xAG7aW2OcH6PiMk6BfD3BzW4khNrzjRWlC\nG7Z0itmkyxXAPeojB9tPLXkNsJPoOolVd4OOWZHgxa4FWSAUJClNxcwTFBBH\nBnJ2Tl2TrqQiEIp1tjxX30pyvMoYmiC46i8vsqvZF1+61zJr8km+075q5oO1\n/TeD\r\n=tEBH\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFFf8kJO9UaR4Td2ViXToS6YnrDT5cFQVj9r/qxHejjDAiEAqhPStqZk7r3aUilwtNc9MrxXelHiIyz1xYooSaUREDU="}]},"_npmUser":{"name":"anad","email":"supercamman20@gmail.com"},"directories":{},"maintainers":[{"name":"anad","email":"supercamman20@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/concise-buffer_0.0.3_1613436907044_0.11723969765868358"},"_hasShrinkwrap":false}},"time":{"created":"2021-02-16T00:25:58.100Z","0.0.1":"2021-02-16T00:25:58.560Z","modified":"2022-04-27T15:23:52.688Z","0.0.2":"2021-02-16T00:45:17.132Z","0.0.3":"2021-02-16T00:55:07.179Z"},"maintainers":[{"name":"anad","email":"supercamman20@gmail.com"}],"description":"Concisely serialise the beginning and end of a Node buffer for logging.","homepage":"https://github.com/Anadian/concise-buffer#readme","keywords":["concise","concisely","serialize","serialise","pretty","print","head","tail","buffer","node","free","libre","open","source","mit","logging"],"repository":{"type":"git","url":"git+https://github.com/Anadian/concise-buffer.git"},"author":{"name":"Anadian"},"bugs":{"url":"https://github.com/Anadian/concise-buffer/issues"},"license":"MIT","readme":"# concise-buffer\n[![standard-readme compliant](https://img.shields.io/badge/readme%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)\n[![Semantic Versioning 2.0.0](https://img.shields.io/badge/semver-2.0.0-brightgreen?style=flat-square)](https://semver.org/spec/v2.0.0.html)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg?style=flat-square)](https://conventionalcommits.org)\n[![License](https://img.shields.io/github/license/Anadian/concise-buffer)](https://github.com/Anadian/concise-buffer/blob/master/LICENSE)\n[![npm](https://img.shields.io/npm/v/concise-buffer)](https://www.npmjs.com/package/concise-buffer)\n[![CI](https://github.com/Anadian/concise-buffer/workflows/ci/badge.svg)](https://github.com/Anadian/concise-buffer/actions?query=workflow%3Aci)\n[![Coverage Status](https://coveralls.io/repos/github/Anadian/concise-buffer/badge.svg?branch=master)](https://coveralls.io/github/Anadian/concise-buffer?branch=master)\n![David](https://david-dm.org/Anadian/concise-buffer.svg)\n\n> Concisely serialise the beginning and end of a Node buffer for logging.\n# Table of Contents\n- [Background](#Background)\n- [Install](#Install)\n- [Usage](#Usage)\n- [API](#API)\n- [Contributing](#Contributing)\n- [License](#License)\n# Background\nI created this module simply because I was tired of Node Buffer's default serialisation producing massive garish noise in my logs. This module is incredibly simple: right now, it defines a single exported function, `getStringFromBuffer`, which turns an entire buffer into a nicely readable and consistent format `Buffer:[ <some_bytes> ... <some_bytes> ]`; how many bytes it includes can be specified and defaults to 16. If the number of bytes requested is greater than half the length of the buffer: it will simply serialise the whole buffer in hexadecimal.\n# Install\nTo use it as a dependency in another package run:\n```sh\nnpm install --save concise-buffer\n```\nTo install it globally run:\n```sh\nnpm install --global concise-buffer\n```\n# Usage\nExample:\n```js\nconst ConciseBuffer = require('concise-buffer');\n\nconst some_buffer = Buffer.from( [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 ] ); //In real use cases, the buffer will propbably be a lot longer than this but you get the idea.\n\nvar concise_string = ConciseBuffer.getStringFromBuffer( some_buffer, 4 ); //You can optionally specify how many bytes from the beginning and end of the buffer you want; the default is 16.\n\nconsole.log( concise_string ); //Will print: `Buffer:[ 00010203 ... 0c0d0e0f ]`\n```\n# API\n```js\nconst ConciseBuffer = require('concise-buffer');\n```\nSee [API.md](API.md) for full API.\n# Contributing\nChanges are tracked in [CHANGELOG.md](CHANGELOG.md).\n# License\nMIT ©2021 Anadian\n\nSEE LICENSE IN [LICENSE](LICENSE)\n\n[![Creative Commons License](https://i.creativecommons.org/l/by-sa/4.0/88x31.png)](http://creativecommons.org/licenses/by-sa/4.0/)This project's documentation is licensed under a [Creative Commons Attribution-ShareAlike 4.0 International License](http://creativecommons.org/licenses/by-sa/4.0/).\n","readmeFilename":"README.md"}