{"_id":"single-trailing-newline","_rev":"3-06dc39b5537cf61ec70a710aaa377995","name":"single-trailing-newline","description":"Ensure a string has a single trailing newline based off it's dominant newline character.","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"single-trailing-newline","description":"Ensure a string has a single trailing newline based off it's dominant newline character.","author":{"name":"John Otander"},"version":"1.0.0","main":"index.js","files":["index.js"],"scripts":{"test":"ava"},"repository":{"type":"git","url":"git+https://github.com/johnotander/single-trailing-newline.git"},"keywords":["newline","trailing","single","cf","lf","linebreak","eol"],"license":"MIT","bugs":{"url":"https://github.com/johnotander/single-trailing-newline/issues"},"homepage":"https://github.com/johnotander/single-trailing-newline","dependencies":{"detect-newline":"^1.0.3"},"devDependencies":{"ava":"*"},"gitHead":"735e3602235ba5fbd646223481e4203bd335cb4b","_id":"single-trailing-newline@1.0.0","_shasum":"81f0ad2ad645181945c80952a5c1414992ee9664","_from":".","_npmVersion":"3.3.8","_nodeVersion":"4.1.2","_npmUser":{"name":"johno","email":"johnotander@gmail.com"},"dist":{"shasum":"81f0ad2ad645181945c80952a5c1414992ee9664","tarball":"https://registry.npmjs.org/single-trailing-newline/-/single-trailing-newline-1.0.0.tgz","integrity":"sha512-92j7GTWZUsnzRgU3NTJ6l9InTLJLMFugk/3k2FGIBEfcFj8HZnPZwu59OXzzlIr5a5lV3bVO4R1jvFO4gp6clA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCtfQIEMQHLF4x53jzpBwdFIAcnP/MUhGbH8pGuCBSt9gIhAJ4M8JJedlj24ZoAvs3j2KYCROQpA2+dw94Fhxf7cRWZ"}]},"maintainers":[{"name":"johno","email":"johnotander@gmail.com"}]}},"readme":"# single-trailing-newline [![Build Status](https://secure.travis-ci.org/johnotander/single-trailing-newline.png?branch=master)](https://travis-ci.org/johnotander/single-trailing-newline) [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://github.com/feross/standard)\n\nEnsure a string has a single trailing newline based off it's dominant newline character.\n\n## Installation\n\n```bash\nnpm install --save single-trailing-newline\n```\n\n## Usage\n\n```javascript\nvar singleTrailingNewline = require('single-trailing-newline')\n\nsingleTrailingNewline('foo\\nbar')  // => 'foo\\nbar\\n'\nsingleTrailingNewline('foo\\nbar\\n\\n')  // => 'foo\\nbar\\n'\nsingleTrailingNewline('foo\\r\\nbar')  // => 'foo\\r\\nbar\\r\\n'\nsingleTrailingNewline('foo\\r\\nbar\\n\\n\\n\\n')  // => 'foo\\r\\nbar\\n'\n```\n\n## License\n\nMIT\n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n\nCrafted with <3 by John Otander ([@4lpine](https://twitter.com/4lpine)).\n\n***\n\n> This package was initially generated with [yeoman](http://yeoman.io) and the [p generator](https://github.com/johnotander/generator-p.git).\n","maintainers":[{"name":"johno","email":"johnotander@gmail.com"}],"time":{"modified":"2022-06-26T20:13:02.961Z","created":"2015-10-30T18:52:08.861Z","1.0.0":"2015-10-30T18:52:08.861Z"},"homepage":"https://github.com/johnotander/single-trailing-newline","keywords":["newline","trailing","single","cf","lf","linebreak","eol"],"repository":{"type":"git","url":"git+https://github.com/johnotander/single-trailing-newline.git"},"author":{"name":"John Otander"},"bugs":{"url":"https://github.com/johnotander/single-trailing-newline/issues"},"license":"MIT","readmeFilename":"readme.md"}