{"_id":"eol","_rev":"4298158","name":"eol","description":"Newline character converter","dist-tags":{"latest":"0.10.0"},"maintainers":[{"name":"ryanve","email":"ryanve@gmail.com"}],"time":{"modified":"2026-04-07T21:04:01.000Z","created":"2014-03-12T17:33:26.853Z","0.10.0":"2024-09-01T01:10:53.204Z","0.9.1":"2017-09-06T07:34:02.629Z","0.9.0":"2017-05-01T19:09:56.796Z","0.8.1":"2017-02-19T00:18:47.043Z","0.8.0":"2017-02-19T00:07:39.482Z","0.7.0":"2017-02-18T08:31:54.341Z","0.6.0":"2017-02-11T02:02:12.074Z","0.5.1":"2017-01-03T00:49:04.948Z","0.5.0":"2017-01-02T09:16:01.642Z","0.4.0":"2016-10-11T00:21:21.078Z","0.3.0":"2016-09-11T04:03:01.257Z","0.2.0":"2014-03-20T14:30:35.007Z","0.1.0":"2014-03-12T17:33:26.853Z"},"users":{"ryanve":true,"norbertparti":true},"author":{"name":"Ryan Van Etten"},"repository":{"type":"git","url":"git+https://github.com/ryanve/eol.git"},"versions":{"0.10.0":{"name":"eol","description":"Newline character converter","version":"0.10.0","homepage":"https://ryanve.github.io/eol","funding":"https://github.com/sponsors/ryanve","license":"MIT","author":{"name":"Ryan Van Etten"},"main":"eol.js","types":"eol.d.ts","typings":"eol.d.ts","scripts":{"lint":"npx eslint","preversion":"npm test","pretest":"npm run lint","test":"node test.js"},"repository":{"type":"git","url":"git+https://github.com/ryanve/eol.git"},"bugs":{"url":"https://github.com/ryanve/eol/issues"},"keywords":["eol","lf","cr","crlf","newline","newlines","convert","converter","conversion","character","formatting","format","string","javascript","typescript","ender","file"],"devDependencies":{"aok":"^1.9.0","eslint":"^9.9.1"},"_id":"eol@0.10.0","gitHead":"05a8e9989647b5cdb3063be269486e8798acc962","_nodeVersion":"20.7.0","_npmVersion":"10.1.0","dist":{"shasum":"51b35c6b9aa0329a26d102b6ddc454be8654739b","size":6140,"noattachment":false,"key":"/eol/-/eol-0.10.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/eol/download/eol-0.10.0.tgz"},"_npmUser":{"name":"ryanve","email":"ryanve@gmail.com"},"directories":{},"maintainers":[{"name":"ryanve","email":"ryanve@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eol_0.10.0_1725153053057_0.0014017660885610184"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-09-01T01:10:53.204Z","publish_time":1725153053204,"_source_registry_name":"default","_cnpm_publish_time":1725153053204},"0.9.1":{"name":"eol","description":"Newline character converter","version":"0.9.1","homepage":"https://github.com/ryanve/eol","license":"MIT","author":{"name":"Ryan Van Etten"},"main":"eol.js","types":"eol.d.ts","typings":"eol.d.ts","scripts":{"lint":"eslint . --ext .js","preversion":"npm test","pretest":"npm run lint","test":"node test.js"},"repository":{"type":"git","url":"git+https://github.com/ryanve/eol.git"},"bugs":{"url":"https://github.com/ryanve/eol/issues"},"keywords":["eol","lf","cr","crlf","newline","newlines","convert","converter","conversion","character","formatting","format","string","javascript","typescript","ender","file"],"devDependencies":{"aok":"^1.9.0","eslint":"^3.15.0"},"gitHead":"b80f4ad716a4d4cbf55ae183ce88ab190faae043","_id":"eol@0.9.1","_npmVersion":"5.3.0","_nodeVersion":"8.3.0","_npmUser":{"name":"ryanve","email":"ryanve@gmail.com"},"dist":{"shasum":"f701912f504074be35c6117a5c4ade49cd547acd","size":4806,"noattachment":false,"key":"/eol/-/eol-0.9.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/eol/download/eol-0.9.1.tgz"},"maintainers":[{"name":"ryanve","email":"ryanve@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eol-0.9.1.tgz_1504683242538_0.4004428612533957"},"directories":{},"publish_time":1504683242629,"_hasShrinkwrap":false,"_cnpm_publish_time":1504683242629},"0.9.0":{"name":"eol","description":"Newline character converter","version":"0.9.0","homepage":"https://github.com/ryanve/eol","license":"MIT","author":{"name":"Ryan Van Etten"},"main":"eol.js","types":"eol.d.ts","typings":"eol.d.ts","scripts":{"lint":"eslint . --ext .js","preversion":"npm test","pretest":"npm run lint","test":"node test.js"},"repository":{"type":"git","url":"git+https://github.com/ryanve/eol.git"},"bugs":{"url":"https://github.com/ryanve/eol/issues"},"keywords":["eol","lf","cr","crlf","newline","newlines","convert","converter","conversion","character","formatting","format","string","javascript","typescript","ender","file"],"devDependencies":{"aok":"^1.9.0","eslint":"^3.15.0"},"gitHead":"145a7440637b9d8fb6288c8190f06a9b0e18f55e","_id":"eol@0.9.0","_shasum":"5c33e25b7001bbb69ca6947593d3332e36e04f6a","_from":".","_npmVersion":"4.2.0","_nodeVersion":"6.10.1","_npmUser":{"name":"ryanve","email":"ryanve@gmail.com"},"dist":{"shasum":"5c33e25b7001bbb69ca6947593d3332e36e04f6a","size":5941,"noattachment":false,"key":"/eol/-/eol-0.9.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/eol/download/eol-0.9.0.tgz"},"maintainers":[{"name":"ryanve","email":"ryanve@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/eol-0.9.0.tgz_1493665796570_0.6828790733125061"},"directories":{},"publish_time":1493665796796,"_cnpm_publish_time":1493665796796,"_hasShrinkwrap":false},"0.8.1":{"name":"eol","description":"Newline character converter","version":"0.8.1","homepage":"https://github.com/ryanve/eol","license":"MIT","author":{"name":"Ryan Van Etten"},"main":"eol.js","types":"eol.d.ts","typings":"eol.d.ts","scripts":{"lint":"eslint . --ext .js","preversion":"npm test","pretest":"npm run lint","test":"node test.js"},"repository":{"type":"git","url":"git+https://github.com/ryanve/eol.git"},"bugs":{"url":"https://github.com/ryanve/eol/issues"},"keywords":["eol","lf","cr","crlf","newline","newlines","convert","converter","conversion","character","formatting","format","string","javascript","typescript","ender","file"],"devDependencies":{"aok":"^1.9.0","eslint":"^3.15.0"},"gitHead":"1073f8aea99c068d828ac7c6a0bfb71da10531f5","_id":"eol@0.8.1","_shasum":"defc3224990c7eca73bb34461a56cf9dc24761d0","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.5","_npmUser":{"name":"ryanve","email":"ryanve@gmail.com"},"dist":{"shasum":"defc3224990c7eca73bb34461a56cf9dc24761d0","size":4456,"noattachment":false,"key":"/eol/-/eol-0.8.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/eol/download/eol-0.8.1.tgz"},"maintainers":[{"name":"ryanve","email":"ryanve@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/eol-0.8.1.tgz_1487463525151_0.4442853578366339"},"directories":{},"publish_time":1487463527043,"_cnpm_publish_time":1487463527043,"_hasShrinkwrap":false},"0.8.0":{"name":"eol","description":"Newline character converter","version":"0.8.0","homepage":"https://github.com/ryanve/eol","license":"MIT","author":{"name":"Ryan Van Etten"},"main":"eol.js","types":"eol.d.ts","typings":"eol.d.ts","scripts":{"lint":"eslint . --ext .js","preversion":"npm test","pretest":"npm run lint","test":"node test.js"},"repository":{"type":"git","url":"git+https://github.com/ryanve/eol.git"},"bugs":{"url":"https://github.com/ryanve/eol/issues"},"keywords":["eol","lf","cr","crlf","newline","newlines","convert","converter","conversion","character","formatting","format","string","javascript","typescript","ender","file"],"devDependencies":{"aok":"^1.9.0","eslint":"^3.15.0"},"gitHead":"0402f6647af30f54929081d476a5ba324e881602","_id":"eol@0.8.0","_shasum":"d3db9c5680b782792dc8726de9aca44e4e91bda6","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.5","_npmUser":{"name":"ryanve","email":"ryanve@gmail.com"},"dist":{"shasum":"d3db9c5680b782792dc8726de9aca44e4e91bda6","size":4409,"noattachment":false,"key":"/eol/-/eol-0.8.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/eol/download/eol-0.8.0.tgz"},"maintainers":[{"name":"ryanve","email":"ryanve@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/eol-0.8.0.tgz_1487462857616_0.5339695615693927"},"directories":{},"publish_time":1487462859482,"_cnpm_publish_time":1487462859482,"_hasShrinkwrap":false},"0.7.0":{"name":"eol","description":"Newline character converter","version":"0.7.0","homepage":"https://github.com/ryanve/eol","license":"MIT","author":{"name":"Ryan Van Etten"},"keywords":["eol","newline","newlines","convert","converter","conversion","character","formatting","format","string","javascript","typescript","file","ender"],"main":"eol.js","types":"eol.d.ts","typings":"eol.d.ts","scripts":{"lint":"jshint eol.js && jshint test.js","pretest":"npm run lint","test":"node test.js"},"repository":{"type":"git","url":"git+https://github.com/ryanve/eol.git"},"bugs":{"url":"https://github.com/ryanve/eol/issues"},"devDependencies":{"aok":"^1.9.0","jshint":"^2.9.3"},"jshintConfig":{"asi":true,"boss":true,"browser":true,"eqnull":true,"expr":true,"latedef":"nofunc","laxcomma":true,"maxerr":5,"node":true,"sub":true,"supernew":true,"undef":true,"unused":true},"gitHead":"9950b994bfcbc9c397c5e0351ad4bd4c72f23b9d","_id":"eol@0.7.0","_shasum":"51c39cb0804acd1db64550e84a076042da786b56","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.5","_npmUser":{"name":"ryanve","email":"ryanve@gmail.com"},"dist":{"shasum":"51c39cb0804acd1db64550e84a076042da786b56","size":4304,"noattachment":false,"key":"/eol/-/eol-0.7.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/eol/download/eol-0.7.0.tgz"},"maintainers":[{"name":"ryanve","email":"ryanve@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/eol-0.7.0.tgz_1487406712632_0.930875880876556"},"directories":{},"publish_time":1487406714341,"_cnpm_publish_time":1487406714341,"_hasShrinkwrap":false},"0.6.0":{"name":"eol","description":"Newline character converter","version":"0.6.0","homepage":"https://github.com/ryanve/eol","license":"MIT","author":{"name":"Ryan Van Etten"},"keywords":["eol","newline","newlines","convert","converter","conversion","character","formatting","format","string","javascript","typescript","file","ender"],"main":"eol.js","types":"eol.d.ts","typings":"eol.d.ts","scripts":{"lint":"jshint eol.js && jshint test.js","pretest":"npm run lint","test":"node test.js"},"repository":{"type":"git","url":"git+https://github.com/ryanve/eol.git"},"bugs":{"url":"https://github.com/ryanve/eol/issues"},"devDependencies":{"aok":"^1.9.0","jshint":"^2.9.3"},"jshintConfig":{"asi":true,"boss":true,"browser":true,"eqnull":true,"expr":true,"latedef":"nofunc","laxcomma":true,"maxerr":5,"node":true,"sub":true,"supernew":true,"undef":true,"unused":true},"gitHead":"f444a74e0a7637ac749c4009e3e3495a692f5c6f","_id":"eol@0.6.0","_shasum":"e0e3bcc3c95d8e1efd2dab72a1ccf3cf6c960c89","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.5","_npmUser":{"name":"ryanve","email":"ryanve@gmail.com"},"dist":{"shasum":"e0e3bcc3c95d8e1efd2dab72a1ccf3cf6c960c89","size":4148,"noattachment":false,"key":"/eol/-/eol-0.6.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/eol/download/eol-0.6.0.tgz"},"maintainers":[{"name":"ryanve","email":"ryanve@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/eol-0.6.0.tgz_1486778530093_0.13013460510410368"},"directories":{},"publish_time":1486778532074,"_cnpm_publish_time":1486778532074,"_hasShrinkwrap":false},"0.5.1":{"name":"eol","description":"Newline character converter","version":"0.5.1","homepage":"https://github.com/ryanve/eol","license":"MIT","author":{"name":"Ryan Van Etten"},"keywords":["eol","newline","newlines","convert","converter","conversion","character","formatting","format","string","file","ender"],"main":"eol.js","scripts":{"lint":"jshint eol.js && jshint test.js","pretest":"npm run lint","test":"node test.js"},"repository":{"type":"git","url":"git+https://github.com/ryanve/eol.git"},"bugs":{"url":"https://github.com/ryanve/eol/issues"},"devDependencies":{"aok":"^1.9.0","jshint":"^2.9.3"},"jshintConfig":{"asi":true,"boss":true,"browser":true,"eqnull":true,"expr":true,"latedef":"nofunc","laxcomma":true,"maxerr":5,"node":true,"sub":true,"supernew":true,"undef":true,"unused":true},"gitHead":"ab8db41582bebf8897b609b2db84fd9bc122f950","_id":"eol@0.5.1","_shasum":"a2f15f9be38ac160f27c4e394fde02a9731a410c","_from":".","_npmVersion":"2.15.9","_nodeVersion":"4.5.0","_npmUser":{"name":"ryanve","email":"ryanve@gmail.com"},"maintainers":[{"name":"ryanve","email":"ryanve@gmail.com"}],"dist":{"shasum":"a2f15f9be38ac160f27c4e394fde02a9731a410c","size":3956,"noattachment":false,"key":"/eol/-/eol-0.5.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/eol/download/eol-0.5.1.tgz"},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/eol-0.5.1.tgz_1483404542912_0.861678033368662"},"directories":{},"publish_time":1483404544948,"_cnpm_publish_time":1483404544948,"_hasShrinkwrap":false},"0.5.0":{"name":"eol","description":"Newline character converter","version":"0.5.0","homepage":"https://github.com/ryanve/eol","license":"MIT","author":{"name":"Ryan Van Etten"},"keywords":["eol","newline","newlines","convert","converter","conversion","character","formatting","format","string","file","ender"],"main":"eol.js","scripts":{"lint":"jshint eol.js && jshint test.js","pretest":"npm run lint","test":"node test.js"},"repository":{"type":"git","url":"git+https://github.com/ryanve/eol.git"},"bugs":{"url":"https://github.com/ryanve/eol/issues"},"devDependencies":{"aok":"^1.9.0","jshint":"^2.9.3"},"jshintConfig":{"asi":true,"boss":true,"browser":true,"eqnull":true,"expr":true,"latedef":"nofunc","laxcomma":true,"maxerr":5,"node":true,"sub":true,"supernew":true,"undef":true,"unused":true},"gitHead":"138f056145e691190fecc88f2858d575dd3df0ff","_id":"eol@0.5.0","_shasum":"7544ee1c9cefcac6041286abac1e7f5e5b36f10c","_from":".","_npmVersion":"2.15.9","_nodeVersion":"4.5.0","_npmUser":{"name":"ryanve","email":"ryanve@gmail.com"},"maintainers":[{"name":"ryanve","email":"ryanve@gmail.com"}],"dist":{"shasum":"7544ee1c9cefcac6041286abac1e7f5e5b36f10c","size":3895,"noattachment":false,"key":"/eol/-/eol-0.5.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/eol/download/eol-0.5.0.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/eol-0.5.0.tgz_1483348561394_0.3931479558814317"},"directories":{},"publish_time":1483348561642,"_cnpm_publish_time":1483348561642,"_hasShrinkwrap":false},"0.4.0":{"name":"eol","description":"Newline character converter","version":"0.4.0","homepage":"https://github.com/ryanve/eol","license":"MIT","author":{"name":"Ryan Van Etten"},"keywords":["eol","newline","newlines","convert","converter","conversion","character","formatting","format","string","file","ender"],"main":"eol.js","scripts":{"pretest":"jshint eol.js && jshint test.js","test":"node test.js"},"repository":{"type":"git","url":"git+https://github.com/ryanve/eol.git"},"bugs":{"url":"https://github.com/ryanve/eol/issues"},"devDependencies":{"aok":"^1.9.0","jshint":"^2.9.3"},"jshintConfig":{"asi":true,"boss":true,"browser":true,"eqnull":true,"expr":true,"latedef":"nofunc","laxcomma":true,"maxerr":5,"node":true,"sub":true,"supernew":true,"undef":true,"unused":true},"gitHead":"66ffd486919f0201972d44682cdd1e1af90a2710","_id":"eol@0.4.0","_shasum":"f190e727469d8e77264273afe5b9c96fcd75026c","_from":".","_npmVersion":"2.15.8","_nodeVersion":"4.4.7","_npmUser":{"name":"ryanve","email":"ryanve@gmail.com"},"dist":{"shasum":"f190e727469d8e77264273afe5b9c96fcd75026c","size":2893,"noattachment":false,"key":"/eol/-/eol-0.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/eol/download/eol-0.4.0.tgz"},"maintainers":[{"name":"ryanve","email":"ryanve@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/eol-0.4.0.tgz_1476145279225_0.4842809517867863"},"directories":{},"publish_time":1476145281078,"_cnpm_publish_time":1476145281078,"_hasShrinkwrap":false},"0.3.0":{"name":"eol","description":"Newline character converter","version":"0.3.0","homepage":"https://github.com/ryanve/eol","license":"MIT","author":{"name":"Ryan Van Etten"},"keywords":["eol","newline","newlines","convert","converter","conversion","character","formatting","format","string","file","ender"],"main":"eol.js","scripts":{"pretest":"jshint eol.js && jshint test.js","test":"node test.js"},"repository":{"type":"git","url":"git+https://github.com/ryanve/eol.git"},"bugs":{"url":"https://github.com/ryanve/eol/issues"},"devDependencies":{"aok":"^1.9.0","jshint":"^2.9.3"},"jshintConfig":{"asi":true,"boss":true,"browser":true,"eqnull":true,"expr":true,"latedef":"nofunc","laxcomma":true,"maxerr":5,"node":true,"sub":true,"supernew":true,"undef":true,"unused":true},"gitHead":"562298e10269786e4ad0826132ce024358905862","_id":"eol@0.3.0","_shasum":"f6c4812b0cb157518cfc7fc3b7326d004e2847d7","_from":".","_npmVersion":"2.15.9","_nodeVersion":"4.5.0","_npmUser":{"name":"ryanve","email":"ryanve@gmail.com"},"maintainers":[{"name":"ryanve","email":"ryanve@gmail.com"}],"dist":{"shasum":"f6c4812b0cb157518cfc7fc3b7326d004e2847d7","size":2779,"noattachment":false,"key":"/eol/-/eol-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/eol/download/eol-0.3.0.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/eol-0.3.0.tgz_1473566578758_0.8201371524482965"},"directories":{},"publish_time":1473566581257,"_cnpm_publish_time":1473566581257,"_hasShrinkwrap":false},"0.2.0":{"name":"eol","description":"Newline character converter","version":"0.2.0","homepage":"https://github.com/ryanve/eol","license":"MIT","author":{"name":"Ryan Van Etten"},"keywords":["eol","newline","convert","converter","conversion","character","ender"],"main":"./eol.js","repository":{"type":"git","url":"https://github.com/ryanve/eol.git"},"devDependencies":{"aok":"~1.8.1","universal":"~0.0.5","grunt":"~0.4.4","grunt-contrib-uglify":"~0.3.0","grunt-contrib-concat":"~0.3.0","grunt-contrib-jshint":"~0.8.0"},"jshintConfig":{"boss":true,"browser":true,"debug":true,"devel":true,"eqnull":true,"evil":true,"expr":true,"globals":{"define":true,"ender":true},"jquery":true,"latedef":"nofunc","laxcomma":true,"maxerr":10,"node":true,"sub":true,"supernew":true,"undef":true,"unused":true},"bugs":{"url":"https://github.com/ryanve/eol/issues"},"_id":"eol@0.2.0","dist":{"shasum":"2f6db086a243a46e3e5dbd0e13435c7ebebf09dd","size":2453,"noattachment":false,"key":"/eol/-/eol-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/eol/download/eol-0.2.0.tgz"},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"ryanve","email":"ryanve@gmail.com"},"maintainers":[{"name":"ryanve","email":"ryanve@gmail.com"}],"directories":{},"publish_time":1395325835007,"_cnpm_publish_time":1395325835007,"_hasShrinkwrap":false},"0.1.0":{"name":"eol","description":"Newline character converter","version":"0.1.0","homepage":"https://github.com/ryanve/eol","license":"MIT","author":{"name":"Ryan Van Etten"},"keywords":["eol","newline","convert","converter","conversion","character","ender"],"main":"./eol.js","repository":{"type":"git","url":"https://github.com/ryanve/eol.git"},"devDependencies":{"aok":"~1.8.1","universal":"~0.0.2","grunt":"~0.4.2","grunt-contrib-uglify":"~0.3.0","grunt-contrib-concat":"~0.3.0","grunt-contrib-jshint":"~0.8.0"},"bugs":{"url":"https://github.com/ryanve/eol/issues"},"_id":"eol@0.1.0","dist":{"shasum":"5cba708cdbcd66993544d89f9dafc6239b937ae6","size":2043,"noattachment":false,"key":"/eol/-/eol-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/eol/download/eol-0.1.0.tgz"},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"ryanve","email":"ryanve@gmail.com"},"maintainers":[{"name":"ryanve","email":"ryanve@gmail.com"}],"directories":{},"publish_time":1394645606853,"_cnpm_publish_time":1394645606853,"_hasShrinkwrap":false}},"readme":"# [eol](https://ryanve.github.io/eol)\n\n[Newline](http://en.wikipedia.org/wiki/Newline) character converter node module for [JavaScript](eol.js) or [TypeScript](eol.d.ts)\n\n### [npm.im/eol](https://npmjs.com/package/eol)\n\n* `npm install eol`\n* <code><b>let</b> eol = <b>require</b>(\"eol\")</code>\n* <code><b>import</b> eol <b>from</b> \"eol\"</code>\n\n## [API](https://ryanve.github.io/eol#methods)\n\n### eol.auto(<var>text</var>)\n\n* Normalize line endings in <var>text</var> to match the current operating system\n* Returns string with line endings normalized to `\\r\\n` or `\\n`\n\n### eol.crlf(<var>text</var>)\n\n* Normalize line endings in <var>text</var> to <b>CRLF</b> (Windows, DOS)\n* Returns string with line endings normalized to `\\r\\n`\n\n### eol.lf(<var>text</var>)\n\n* Normalize line endings in <var>text</var> to <b>LF</b> (Unix, OS X)\n* Returns string with line endings normalized to `\\n`\n\n### eol.cr(<var>text</var>)\n\n* Normalize line endings in <var>text</var> to <b>CR</b> (Mac OS)\n* Returns string with line endings normalized to `\\r`\n\n### eol.dub(<var>text</var>)\n\n* Generate normalizer where linebreaks become <var>text</var>\n* Used [internally](eol.js) to generate the [normalizers](#api) above\n* Returns composed pure function with [creative potential](#dubbing)\n\n### eol.before(<var>text</var>)\n\n* Add linebreak before <var>text</var>\n* Returns string with linebreak added before text\n* Uses `eol.auto` linebreak\n* `eol.lf(eol.before(text))` &vellip;\n\n### eol.after(<var>text</var>)\n\n* Add linebreak after <var>text</var>\n* Returns string with linebreak added after text\n* Uses `eol.auto` linebreak\n* `eol.lf(eol.after(text))` &vellip;\n\n### eol.match(<var>text</var>)\n\n* Detect or inspect linebreaks in <var>text</var>\n* Returns array of matched linebreaks\n\n### eol.split(<var>text</var>)\n\n* Split <var>text</var> by newline\n* Returns array of lines\n\n### Joining\n\nCoercing [normalizers](#api) to string yields the appropriate character...useful glue for joining\n\n```js\nString(eol.lf) // \"\\n\"\neol.split(text).join(eol.auto) // === eol.auto(text)\neol.split(text).filter(line => line).join(eol.auto) // text joined after removing empty lines\neol.split(text).slice(-3).join(eol.auto) // last 3 lines joined\n```\n\n### Matching\n\nDetect or inspect via match\n\n```js\neol.match(\" \") // []\neol.match(\"world\\nwide\\nweb\") // [\"\\n\",\"\\n\"]\n```\n\n### Dubbing\n\nGenerate alternate [normalizers](#api)\n\n```\nlet extra = eol.dub(\"\\n\\n\\n\")\nextra(\"...\")\n```\n\n```\nlet huh = eol.dub(\"???\")\nhuh(\"...\")\n```\n\n## modularitY\n\n### [edit-file](https://github.com/ryanve/edit-file)\n\n```js\nlet eol = require(\"eol\")\nlet edit = require(\"edit-file\")\n\nedit(\"sample.txt\", eol.lf)\n```\n\n### [map-file](https://github.com/ryanve/map-file)\n\n```js\nlet eol = require(\"eol\")\nlet map = require(\"map-file\")\n\nmap({\n  from: \"from.txt\",\n  to: \"to.txt\",\n  map: eol.lf\n})\n```\n\n### [ssv](https://ryanve.github.io/ssv)\n\n```js\nlet ssv = require(\"ssv\")\nlet eol = require(\"eol\")\n\nlet deep = eol.split(\"spaced.txt\").map(ssv.split)\n```\n\n### Yours\n\nHave an `eol` sample to share?\n\n[Then please do](../../issues/new) :test_tube: :test_tube: :test_tube: :test_tube:\n\n## [opensource](package.json)\n\n[<b>MIT</b> License](LICENSE.md)\n\n[**∞/0**](#eol)\n","_attachments":{},"homepage":"https://ryanve.github.io/eol","bugs":{"url":"https://github.com/ryanve/eol/issues"},"license":"MIT"}