{"_id":"cr","_rev":"92821","name":"cr","description":"Strip windows carriage returns, or convert carriage returns to newlines.","dist-tags":{"latest":"0.1.0"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"time":{"modified":"2021-06-03T10:30:46.000Z","created":"2015-10-10T09:32:22.165Z","0.1.0":"2015-10-10T09:32:22.165Z"},"users":{},"author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/cr.git"},"versions":{"0.1.0":{"name":"cr","description":"Strip windows carriage returns, or convert carriage returns to newlines.","version":"0.1.0","homepage":"https://github.com/jonschlinkert/cr","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/cr.git"},"bugs":{"url":"https://github.com/jonschlinkert/cr/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{},"devDependencies":{"mocha":"*"},"keywords":["carriage","carriage-return","file","fs","newline","newlines","nl","normalize","return","returns","string"],"verb":{"related":{"list":["read-file","read-yaml","read-data","write","copy"]}},"_id":"cr@0.1.0","_shasum":"e59372714cc45154e93b5173f3f134966225bd45","_from":".","_npmVersion":"2.14.4","_nodeVersion":"4.1.1","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"e59372714cc45154e93b5173f3f134966225bd45","size":2096,"noattachment":false,"key":"/cr/-/cr-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/cr/download/cr-0.1.0.tgz"},"directories":{},"publish_time":1444469542165,"_cnpm_publish_time":1444469542165,"_hasShrinkwrap":false}},"readme":"# cr [![NPM version](https://badge.fury.io/js/cr.svg)](http://badge.fury.io/js/cr)\n\n> Strip windows carriage returns, or convert carriage returns to newlines.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/)\n\n```sh\n$ npm i cr --save\n```\n\n## Usage\n\n```js\nvar cr = require('cr');\ncr('a\\r\\nb\\r\\nc');\n//=> 'a\\nb\\nc'\n\ncr('a\\rb\\rc');\n//=> 'a\\nb\\nc'\n```\n\n**Strip carriage returns**\n\n```js\nvar cr = require('cr');\ncr.strip('a\\r\\nb\\r\\nc');\n//=> 'a\\nb\\nc'\n\ncr.strip('a\\rb\\rc');\n//=> 'abc'\n```\n\n## Related projects\n\n* [copy](https://www.npmjs.com/package/copy): Copy files or directories using globs. | [homepage](https://github.com/jonschlinkert/copy)\n* [read-data](https://www.npmjs.com/package/read-data): Read JSON or YAML files. | [homepage](https://github.com/jonschlinkert/read-data)\n* [read-file](https://www.npmjs.com/package/read-file): Thin wrapper around fs.readFile and fs.readFileSync that also strips byte order marks when `utf8` encoding… [more](https://www.npmjs.com/package/read-file) | [homepage](https://github.com/jonschlinkert/read-file)\n* [read-yaml](https://www.npmjs.com/package/read-yaml): Very thin wrapper around js-yaml for directly reading in YAML files. | [homepage](https://github.com/jonschlinkert/read-yaml)\n* [write](https://www.npmjs.com/package/write): Write files to disk, creating intermediate directories if they don't exist. | [homepage](https://github.com/jonschlinkert/write)\n\n## Running tests\n\nInstall dev dependencies:\n\n```sh\n$ npm i -d && npm test\n```\n\n## Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/cr/issues/new).\n\n## Author\n\n**Jon Schlinkert**\n\n+ [github/jonschlinkert](https://github.com/jonschlinkert)\n+ [twitter/jonschlinkert](http://twitter.com/jonschlinkert)\n\n## License\n\nCopyright © 2015 Jon Schlinkert\nReleased under the MIT license.\n\n***\n\n_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on October 10, 2015._","_attachments":{},"homepage":"https://github.com/jonschlinkert/cr","bugs":{"url":"https://github.com/jonschlinkert/cr/issues"},"license":"MIT"}