{"_id":"append-buffer","_rev":"70060","name":"append-buffer","description":"Append a buffer to another buffer ensuring to preserve line ending characters.","dist-tags":{"latest":"1.0.2"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"time":{"modified":"2021-06-03T10:23:10.000Z","created":"2017-08-01T16:04:27.932Z","1.0.2":"2017-08-01T16:50:18.475Z","1.0.1":"2017-08-01T16:35:18.336Z","1.0.0":"2017-08-01T16:04:27.932Z"},"users":{},"author":{"name":"Brian Woodward","url":"https://doowb.com"},"repository":{"type":"git","url":"git+https://github.com/doowb/append-buffer.git"},"versions":{"1.0.2":{"name":"append-buffer","description":"Append a buffer to another buffer ensuring to preserve line ending characters.","version":"1.0.2","homepage":"https://github.com/doowb/append-buffer","author":{"name":"Brian Woodward","url":"https://doowb.com"},"repository":{"type":"git","url":"git+https://github.com/doowb/append-buffer.git"},"bugs":{"url":"https://github.com/doowb/append-buffer/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"keywords":["append","append-buffer","concat","concat-buffer","eol","join","join-buffer","normalize","buffer"],"devDependencies":{"gulp-format-md":"^1.0.0","mocha":"^3.5.0"},"dependencies":{"buffer-equal":"^1.0.0"},"verb":{"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"lint":{"reflinks":true}},"gitHead":"ee617be915a410b5aef59e8f02a551299dd7424e","_id":"append-buffer@1.0.2","_shasum":"d8220cf466081525efea50614f3de6514dfa58f1","_from":".","_npmVersion":"4.6.1","_nodeVersion":"6.10.1","_npmUser":{"name":"doowb","email":"brian.woodward@gmail.com"},"dist":{"shasum":"d8220cf466081525efea50614f3de6514dfa58f1","size":2728,"noattachment":false,"key":"/append-buffer/-/append-buffer-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/append-buffer/download/append-buffer-1.0.2.tgz"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/append-buffer-1.0.2.tgz_1501606217548_0.8564110174775124"},"directories":{},"publish_time":1501606218475,"_hasShrinkwrap":false,"_cnpm_publish_time":1501606218475},"1.0.1":{"name":"append-buffer","description":"Append a buffer to another buffer ensuring to preserve line ending characters.","version":"1.0.1","homepage":"https://github.com/doowb/append-buffer","author":{"name":"Brian Woodward","url":"https://doowb.com"},"repository":{"type":"git","url":"git+https://github.com/doowb/append-buffer.git"},"bugs":{"url":"https://github.com/doowb/append-buffer/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"keywords":["append","buffer"],"devDependencies":{"gulp-format-md":"^1.0.0","mocha":"^3.5.0"},"dependencies":{"buffer-equal":"^1.0.0"},"verb":{"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"lint":{"reflinks":true}},"gitHead":"daa678fca0cfe22fd8517b4b62d99de5ecb4179d","_id":"append-buffer@1.0.1","_shasum":"1efb7a204c9cca4070353f68477434d6c290604f","_from":".","_npmVersion":"4.6.1","_nodeVersion":"6.10.1","_npmUser":{"name":"doowb","email":"brian.woodward@gmail.com"},"dist":{"shasum":"1efb7a204c9cca4070353f68477434d6c290604f","size":2703,"noattachment":false,"key":"/append-buffer/-/append-buffer-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/append-buffer/download/append-buffer-1.0.1.tgz"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/append-buffer-1.0.1.tgz_1501605317212_0.3425591508857906"},"directories":{},"publish_time":1501605318336,"_hasShrinkwrap":false,"_cnpm_publish_time":1501605318336},"1.0.0":{"name":"append-buffer","description":"Append a buffer to another buffer ensuring to preserve line ending characters.","version":"1.0.0","homepage":"https://github.com/doowb/append-buffer","author":{"name":"Brian Woodward","url":"https://doowb.com"},"repository":{"type":"git","url":"git+https://github.com/doowb/append-buffer.git"},"bugs":{"url":"https://github.com/doowb/append-buffer/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"keywords":["append","buffer"],"devDependencies":{"gulp-format-md":"^1.0.0","mocha":"^3.5.0"},"dependencies":{"buffer-equal":"^1.0.0"},"verb":{"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"lint":{"reflinks":true}},"gitHead":"d833df25492f654d1868bdb7808b40ce81ba405e","_id":"append-buffer@1.0.0","_shasum":"ad3863b304d5c6d66efe5e967b9a218d234cc1ed","_from":".","_npmVersion":"4.6.1","_nodeVersion":"6.10.1","_npmUser":{"name":"doowb","email":"brian.woodward@gmail.com"},"dist":{"shasum":"ad3863b304d5c6d66efe5e967b9a218d234cc1ed","size":2679,"noattachment":false,"key":"/append-buffer/-/append-buffer-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/append-buffer/download/append-buffer-1.0.0.tgz"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/append-buffer-1.0.0.tgz_1501603466687_0.8757382743060589"},"directories":{},"publish_time":1501603467932,"_hasShrinkwrap":false,"_cnpm_publish_time":1501603467932}},"readme":"# append-buffer [![NPM version](https://img.shields.io/npm/v/append-buffer.svg?style=flat)](https://www.npmjs.com/package/append-buffer) [![NPM monthly downloads](https://img.shields.io/npm/dm/append-buffer.svg?style=flat)](https://npmjs.org/package/append-buffer)  [![NPM total downloads](https://img.shields.io/npm/dt/append-buffer.svg?style=flat)](https://npmjs.org/package/append-buffer) [![Linux Build Status](https://img.shields.io/travis/doowb/append-buffer.svg?style=flat&label=Travis)](https://travis-ci.org/doowb/append-buffer) [![Windows Build Status](https://img.shields.io/appveyor/ci/doowb/append-buffer.svg?style=flat&label=AppVeyor)](https://ci.appveyor.com/project/doowb/append-buffer)\n\n> Append a buffer to another buffer ensuring to preserve line ending characters.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save append-buffer\n```\n\nInstall with [yarn](https://yarnpkg.com):\n\n```sh\n$ yarn add append-buffer\n```\n\n## Usage\n\n```js\nvar appendBuffer = require('append-buffer');\n```\n\n## API\n\n### [appendBuffer](index.js#L28)\n\nAppend a buffer to another buffer ensuring to preserve line ending characters.\n\n**Params**\n\n* `buf` **{Buffer}**: Buffer that will be used to check for an existing line ending. The suffix is appended to this.\n* `suffix` **{Buffer}**: Buffer that will be appended to the buf.\n* `returns` **{Buffer}**: Final Buffer\n\n**Example**\n\n```js\nconsole.log([appendBuffer(new Buffer('abc\\r\\n'), new Buffer('def')).toString()]);\n//=> [ 'abc\\r\\ndef\\r\\n' ]\n\nconsole.log([appendBuffer(new Buffer('abc\\n'), new Buffer('def')).toString()]);\n//=> [ 'abc\\ndef\\n' ]\n\n// uses os.EOL when a line ending is not found\nconsole.log([appendBuffer(new Buffer('abc'), new Buffer('def')).toString()]);\n//=> [ 'abc\\ndef' ]\n```\n\n## Attribution\n\nThe code in this module was originally added in a [PR](https://github.com/jonschlinkert/file-normalize/pull/3) to [file-normalize](https://github.com/jonschlinkert/file-normalize). It has been split out to allow for standalone use cases.\n\n## About\n\n### Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).\n\nPlease read the [contributing guide](.github/contributing.md) for advice on opening issues, pull requests, and coding standards.\n\n### Building docs\n\n_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_\n\nTo generate the readme, run the following command:\n\n```sh\n$ npm install -g verbose/verb#dev verb-generate-readme && verb\n```\n\n### Running tests\n\nRunning and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:\n\n```sh\n$ npm install && npm test\n```\n\n### Author\n\n**Brian Woodward**\n\n* [github/doowb](https://github.com/doowb)\n* [twitter/doowb](https://twitter.com/doowb)\n\n### License\n\nCopyright © 2017, [Brian Woodward](https://doowb.com).\nReleased under the [MIT License](LICENSE).\n\n***\n\n_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.6.0, on August 01, 2017._","_attachments":{},"homepage":"https://github.com/doowb/append-buffer","bugs":{"url":"https://github.com/doowb/append-buffer/issues"},"license":"MIT"}