{"name":"append-string","description":"Append a string to another string ensuring to preserve line ending characters.","version":"1.0.0","homepage":"https://github.com/doowb/append-string","author":{"name":"Brian Woodward","url":"https://doowb.com"},"repository":{"type":"git","url":"git+https://github.com/doowb/append-string.git"},"bugs":{"url":"https://github.com/doowb/append-string/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"devDependencies":{"gulp-format-md":"^1.0.0","mocha":"^3.5.0"},"keywords":["append","string"],"verb":{"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"lint":{"reflinks":true}},"gitHead":"90d258436ff6b6dcd266684ce7de3e650f4d192d","_id":"append-string@1.0.0","_shasum":"198b977fd9d80f0eeed90d241af3046279c4acae","_from":".","_npmVersion":"4.6.1","_nodeVersion":"6.10.1","_npmUser":{"name":"doowb","email":"brian.woodward@gmail.com"},"dist":{"shasum":"198b977fd9d80f0eeed90d241af3046279c4acae","tarball":"http://registry-npm.ywwl.com/append-string/download/append-string-1.0.0.tgz","integrity":"sha512-HeaAhMVNCSDo24118O16QQuyvaVBP3JzPwSVnlRsVOWolw8Oq/ZaI/+Avb8ZBdIsxzgmGOSgR1XZjfkV4E/XnA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCMcFhJUBpTl1V4mIt70G0O6CkaAs8sBLRko4CNtsxQWgIgDSBwjbm3QJ1HoEu5A8FDEYXUFcU1Ye6Z6yX3ZVh2CsY="}],"size":2608,"noattachment":false,"key":"/append-string/-/append-string-1.0.0.tgz"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/append-string-1.0.0.tgz_1501602897797_0.9005966251716018"},"directories":{},"readme":"# append-string [![NPM version](https://img.shields.io/npm/v/append-string.svg?style=flat)](https://www.npmjs.com/package/append-string) [![NPM monthly downloads](https://img.shields.io/npm/dm/append-string.svg?style=flat)](https://npmjs.org/package/append-string)  [![NPM total downloads](https://img.shields.io/npm/dt/append-string.svg?style=flat)](https://npmjs.org/package/append-string) [![Linux Build Status](https://img.shields.io/travis/doowb/append-string.svg?style=flat&label=Travis)](https://travis-ci.org/doowb/append-string) [![Windows Build Status](https://img.shields.io/appveyor/ci/doowb/append-string.svg?style=flat&label=AppVeyor)](https://ci.appveyor.com/project/doowb/append-string)\n\n> Append a string to another string 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-string\n```\n\nInstall with [yarn](https://yarnpkg.com):\n\n```sh\n$ yarn add append-string\n```\n\n## Usage\n\n```js\nvar appendString = require('append-string');\n```\n\n## API\n\n### [appendString](index.js#L25)\n\nAppend a string to another string ensuring to preserve line ending characters.\n\n**Params**\n\n* `str` **{String}**: String that will be used to check for an existing line ending. The suffix is appended to this.\n* `suffix` **{String}**: String that will be appended to the str.\n* `returns` **{String}**: Final String\n\n**Example**\n\n```js\nconsole.log([appendString('abc\\r\\n', 'def')]);\n//=> [ 'abc\\r\\ndef\\r\\n' ]\n\nconsole.log([appendString('abc\\n', 'def')]);\n//=> [ 'abc\\ndef\\n' ]\n\n// uses os.EOL when a line ending is not found\nconsole.log([appendString('abc', 'def')]);\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._","publish_time":1501602898750,"_cnpm_publish_time":1501602898750,"dist-tags":{"latest":"1.0.2"}}