{
  "_id": "append-buffer",
  "maintainers": [
    {
      "email": "github@sellside.com",
      "name": "jonschlinkert"
    },
    {
      "email": "brian.woodward@gmail.com",
      "name": "doowb"
    }
  ],
  "keywords": [
    "append",
    "append-buffer",
    "concat",
    "concat-buffer",
    "eol",
    "join",
    "join-buffer",
    "normalize",
    "buffer"
  ],
  "dist-tags": {
    "latest": "1.0.2"
  },
  "author": {
    "name": "Brian Woodward",
    "url": "https://doowb.com"
  },
  "_rev": "5-dc6ef1d44a50908e9e309ba95c2ddf36",
  "description": "Append a buffer to another buffer ensuring to preserve line ending characters.",
  "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._",
  "repository": {
    "type": "git",
    "url": "git+https://github.com/doowb/append-buffer.git"
  },
  "bugs": {
    "url": "https://github.com/doowb/append-buffer/issues"
  },
  "license": "MIT",
  "versions": {
    "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",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/append-buffer/-/append-buffer-1.0.0.tgz",
        "integrity": "sha512-fUxSY1J5ocHmNHc3/hXafyDoFxbozc11QiD4Zjw424vPHlUSj6xULoNx96QkSwT9vfVdwRkdNaBvasclbCDeeQ==",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEQCIAPpSPgf07rHzQkkwa5jWrWkF+OyNosWWnWBXI/IjCncAiBMvpHY4+aTMITj74FmjUJDg36tLg0gBOi3JegZ8x8/1Q=="
          }
        ]
      },
      "maintainers": [
        {
          "name": "doowb",
          "email": "brian.woodward@gmail.com"
        }
      ],
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/append-buffer-1.0.0.tgz_1501603466687_0.8757382743060589"
      }
    },
    "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",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/append-buffer/-/append-buffer-1.0.1.tgz",
        "integrity": "sha512-SrhLX2xF8peFmRqP7Jyo7oSMhElGe8zICHCPKEdsUVRNgsL7fvd5fGa21k/tDKWFNJgDCid4nNFB7JUXuYGdFQ==",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEYCIQCcedDkFLboMBP/WHJCkW+K0rE3YUkHYdZuzLAIghb7KAIhAOjmPFdIdSSCFOVGqKLop8NiwOe0iXNm0b+xgPAbCcho"
          }
        ]
      },
      "maintainers": [
        {
          "email": "github@sellside.com",
          "name": "jonschlinkert"
        },
        {
          "email": "brian.woodward@gmail.com",
          "name": "doowb"
        }
      ],
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/append-buffer-1.0.1.tgz_1501605317212_0.3425591508857906"
      }
    },
    "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",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/append-buffer/-/append-buffer-1.0.2.tgz",
        "integrity": "sha512-WLbYiXzD3y/ATLZFufV/rZvWdZOs+Z/+5v1rBZ463Jn398pa6kcde27cvozYnBoxXblGZTFfoPpsaEw0orU5BA==",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIAJ08nREt9jPYHxyhUr5dwdGIV+NQLN1VqAjE2OcREHZAiEA60anaPepUo4J8pba6H6OqPsrzDf5p7R7bZX5ykTMK9M="
          }
        ]
      },
      "maintainers": [
        {
          "email": "github@sellside.com",
          "name": "jonschlinkert"
        },
        {
          "email": "brian.woodward@gmail.com",
          "name": "doowb"
        }
      ],
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/append-buffer-1.0.2.tgz_1501606217548_0.8564110174775124"
      }
    }
  },
  "name": "append-buffer",
  "time": {
    "modified": "2026-05-20T15:56:47.381Z",
    "created": "2017-08-01T16:04:27.932Z",
    "1.0.0": "2017-08-01T16:04:27.932Z",
    "1.0.1": "2017-08-01T16:35:18.336Z",
    "1.0.2": "2017-08-01T16:50:18.475Z"
  },
  "readmeFilename": "README.md",
  "homepage": "https://github.com/doowb/append-buffer"
}