{"_id":"cr","_rev":"6-5750db9bab108f1e2928b6bfa37dc918","name":"cr","time":{"modified":"2022-06-14T02:28:22.965Z","created":"2014-09-29T09:15:52.590Z","0.0.1":"2014-09-29T09:15:52.590Z","0.1.0":"2015-10-10T09:32:22.165Z"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist-tags":{"latest":"0.1.0"},"description":"Strip windows carriage returns, or convert carriage returns to newlines.","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._","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","tarball":"https://registry.npmjs.org/cr/-/cr-0.1.0.tgz","integrity":"sha512-CtjC3GZDV/2yr+jfTMW+VNjWi7Xg9s0BEmbkPj65AuOJBnE11J2VgHwyRUIG3ApXSIgir/jPeuzllLbPdFa+xA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHs64YlFWWSxKUJ3MtF66gpj++neCXlSA+ks08PiNWUpAiEA/vhgCQ0gN13fsxyV7izZUYfAOF8LgXfN5kwr1aP78x0="}]}}},"homepage":"https://github.com/jonschlinkert/cr","keywords":["carriage","carriage-return","file","fs","newline","newlines","nl","normalize","return","returns","string"],"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/cr.git"},"author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"bugs":{"url":"https://github.com/jonschlinkert/cr/issues"},"license":"MIT","readmeFilename":"README.md"}