{"_id":"linez","_rev":"2892859","name":"linez","description":"Parses lines from text, preserving line numbers, offsets and line endings.","dist-tags":{"latest":"4.1.4"},"maintainers":[{"name":"jedmao","email":"jed.hunsaker+npm@gmail.com"}],"time":{"modified":"2022-11-28T08:50:49.000Z","created":"2014-03-06T05:42:01.351Z","4.1.4":"2017-03-02T17:58:56.193Z","4.1.3":"2017-03-02T01:48:24.913Z","4.1.2":"2017-03-01T20:40:03.457Z","4.1.1":"2015-10-01T16:30:06.098Z","4.1.0":"2015-07-30T23:20:01.965Z","4.0.0":"2015-07-30T20:16:37.220Z","3.2.1":"2015-03-17T08:07:28.649Z","3.2.0":"2015-03-16T08:41:50.700Z","3.1.1":"2015-03-16T08:03:37.623Z","3.1.0":"2015-03-16T07:35:21.670Z","3.0.0":"2015-03-14T20:44:49.507Z","2.1.1":"2015-03-14T09:47:23.628Z","2.1.0":"2015-03-14T09:20:52.913Z","2.0.1":"2015-03-10T10:52:21.723Z","2.0.0":"2015-03-10T10:34:23.872Z","1.0.3":"2014-03-16T19:47:08.444Z","0.1.1":"2014-03-07T15:08:02.582Z","0.1.0":"2014-03-06T05:42:01.351Z"},"users":{},"author":{"name":"Jed Mao","email":"jedmao@outlook.com"},"repository":{"type":"git","url":"git+https://github.com/jedmao/linez.git"},"versions":{"4.1.4":{"name":"linez","version":"4.1.4","author":{"name":"Jed Mao","email":"jedmao@outlook.com"},"description":"Parses lines from text, preserving line numbers, offsets and line endings.","keywords":["lines","line","parse","text","newline","ending"],"main":"dist/linez.js","types":"dist/linez.d.ts","scripts":{"clean":"rimraf coverage dist *.log","codecov":"codecov -f coverage/lcov.info","compile":"tsc","compile:watch":"tsc --watch","lint":"npm run tslint","mocha":"mocha dist/**/*.spec.js","prepublish":"npm test","pretest":"npm run lint && npm run clean && npm run compile","test":"nyc npm run mocha -- --reporter lcov --reporter spec","test:watch":"npm run mocha -- --watch --reporter min","tslint":"tslint --project tsconfig.json"},"nyc":{"lines":100,"statements":100,"functions":100,"branches":94.12,"include":["dist/**/*.js"],"exclude":["dist/**/*.spec.js"],"reporter":["lcov","text"],"cache":true,"all":true,"check-coverage":true},"repository":{"type":"git","url":"git+https://github.com/jedmao/linez.git"},"homepage":"https://github.com/jedmao/linez","bugs":{"url":"https://github.com/jedmao/linez/issues"},"license":"MIT","devDependencies":{"@types/chai":"^3.4.35","@types/mocha":"^2.2.39","@types/node":"^7.0.5","@types/sinon":"^1.16.35","@types/sinon-chai":"^2.7.27","chai":"^3.5.0","mocha":"^3.2.0","nyc":"^10.1.2","rimraf":"^2.6.1","sinon":"^1.17.7","sinon-chai":"^2.8.0","ts-node":"^2.1.0","tslint":"^4.5.1","typescript":"^2.2.1"},"dependencies":{"buffer-equals":"^1.0.4","iconv-lite":"^0.4.15"},"gitHead":"f07788bab3a1adedb75c48df519ebc6eb90e5843","_id":"linez@4.1.4","_shasum":"4f1db16965c3a19e394a29313023cc9cb29f02a7","_from":".","_npmVersion":"4.0.5","_nodeVersion":"7.4.0","_npmUser":{"name":"jedmao","email":"jedmao@outlook.com"},"dist":{"shasum":"4f1db16965c3a19e394a29313023cc9cb29f02a7","size":4753,"noattachment":false,"key":"/linez/-/linez-4.1.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/linez/download/linez-4.1.4.tgz"},"maintainers":[{"name":"jedmao","email":"jed.hunsaker+npm@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/linez-4.1.4.tgz_1488477534063_0.9410666925832629"},"directories":{},"_cnpmcore_publish_time":"2021-12-20T06:30:40.126Z","publish_time":1488477536193,"_cnpm_publish_time":1488477536193},"4.1.3":{"name":"linez","version":"4.1.3","author":{"name":"Jed Mao","email":"jedmao@outlook.com"},"description":"Parses lines from text, preserving line numbers, offsets and line endings.","keywords":["lines","line","parse","text","newline","ending"],"main":"dist/linez.js","types":"dist/linez.d.ts","scripts":{"clean":"rimraf coverage dist *.log","codecov":"codecov -f coverage/lcov.info","compile":"tsc","compile:watch":"tsc --watch","lint":"npm run tslint","mocha":"mocha dist/**/*.spec.js","prepublish":"npm test","pretest":"npm run lint && npm run clean && npm run compile","test":"nyc npm run mocha -- --reporter lcov --reporter spec","test:watch":"npm run mocha -- --watch --reporter min","tslint":"tslint --project tsconfig.json"},"nyc":{"lines":100,"statements":100,"functions":100,"branches":94.12,"include":["dist/**/*.js"],"exclude":["dist/**/*.spec.js"],"reporter":["lcov","text"],"cache":true,"all":true,"check-coverage":true},"repository":{"type":"git","url":"git+https://github.com/jedmao/linez.git"},"homepage":"https://github.com/jedmao/linez","bugs":{"url":"https://github.com/jedmao/linez/issues"},"license":"MIT","devDependencies":{"@types/chai":"^3.4.35","@types/mocha":"^2.2.39","@types/node":"^7.0.5","@types/sinon":"^1.16.35","@types/sinon-chai":"^2.7.27","chai":"^2.3.0","mocha":"^2.5.3","nyc":"^10.1.2","rimraf":"^2.6.1","sinon":"^1.17.7","sinon-chai":"^2.8.0","ts-node":"^2.1.0","tslint":"^4.5.1","typescript":"^2.2.1"},"dependencies":{"buffer-equals":"^1.0.4","iconv-lite":"^0.4.15"},"gitHead":"9f5a7a9e199d9cb44f81af0c3778de7d7508fe24","_id":"linez@4.1.3","_shasum":"d54e62e8d4c771c45451e5df0191ea22a0c7ad57","_from":".","_npmVersion":"4.0.5","_nodeVersion":"7.4.0","_npmUser":{"name":"jedmao","email":"jedmao@outlook.com"},"dist":{"shasum":"d54e62e8d4c771c45451e5df0191ea22a0c7ad57","size":4714,"noattachment":false,"key":"/linez/-/linez-4.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/linez/download/linez-4.1.3.tgz"},"maintainers":[{"name":"jedmao","email":"jed.hunsaker+npm@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/linez-4.1.3.tgz_1488419304252_0.644130255561322"},"directories":{},"_cnpmcore_publish_time":"2021-12-20T06:30:39.813Z","publish_time":1488419304913,"_cnpm_publish_time":1488419304913},"4.1.2":{"name":"linez","version":"4.1.2","author":{"name":"Jed Mao","email":"jedmao@outlook.com"},"description":"Parses lines from text, preserving line numbers, offsets and line endings.","keywords":["lines","line","parse","text","newline","ending"],"main":"dist/linez.js","types":"dist/linez.d.ts","scripts":{"clean":"rimraf coverage dist *.log","codecov":"codecov -f coverage/lcov.info","compile":"tsc","compile:watch":"tsc --watch","lint":"npm run tslint","mocha":"mocha dist/**/*.spec.js","prepublish":"npm test","pretest":"npm run lint && npm run clean && npm run compile","test":"nyc npm run mocha -- --reporter lcov --reporter spec","test:watch":"npm run mocha -- --watch --reporter min","tslint":"tslint --project tsconfig.json"},"nyc":{"lines":100,"statements":100,"functions":100,"branches":94.12,"include":["dist/**/*.js"],"exclude":["dist/**/*.spec.js"],"reporter":["lcov","text"],"cache":true,"all":true,"check-coverage":true},"repository":{"type":"git","url":"git+https://github.com/jedmao/linez.git"},"homepage":"https://github.com/jedmao/linez","bugs":{"url":"https://github.com/jedmao/linez/issues"},"license":"MIT","devDependencies":{"@types/chai":"^3.4.35","@types/mocha":"^2.2.39","@types/node":"^7.0.5","@types/sinon":"^1.16.35","@types/sinon-chai":"^2.7.27","chai":"^2.3.0","mocha":"^2.5.3","nyc":"^10.1.2","rimraf":"^2.6.1","sinon":"^1.17.7","sinon-chai":"^2.8.0","ts-node":"^2.1.0","tslint":"^4.5.1","typescript":"^2.2.1"},"dependencies":{"buffer-equals":"^1.0.4","iconv-lite":"^0.4.15"},"gitHead":"c95f0e28272ef7cc326203b51f78daee2b50386e","_id":"linez@4.1.2","_shasum":"e8c41ffe6b03c52279fd2e2eb875f184ff4f0b7f","_from":".","_npmVersion":"4.0.5","_nodeVersion":"7.4.0","_npmUser":{"name":"jedmao","email":"jedmao@outlook.com"},"dist":{"shasum":"e8c41ffe6b03c52279fd2e2eb875f184ff4f0b7f","size":4723,"noattachment":false,"key":"/linez/-/linez-4.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/linez/download/linez-4.1.2.tgz"},"maintainers":[{"name":"jedmao","email":"jed.hunsaker+npm@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/linez-4.1.2.tgz_1488400801741_0.028159344801679254"},"directories":{},"_cnpmcore_publish_time":"2021-12-20T06:30:38.951Z","publish_time":1488400803457,"_cnpm_publish_time":1488400803457},"4.1.1":{"name":"linez","version":"4.1.1","author":{"name":"Jed Mao","email":"jedmao@outlook.com"},"description":"Parses lines from text, preserving line numbers, offsets and line endings.","keywords":["lines","line","parse","text","newline","ending"],"main":"js/linez.js","scripts":{"test":"gulp test"},"repository":{"type":"git","url":"git+https://github.com/jedmao/linez.git"},"homepage":"https://github.com/jedmao/linez","bugs":{"url":"https://github.com/jedmao/linez/issues"},"license":"MIT","devDependencies":{"chai":"^2.1.1","del":"^1.1.1","event-stream":"^3.3.0","gulp":"^3.8.11","gulp-istanbul":"^0.6.0","gulp-mocha":"^2.0.0","gulp-plumber":"^1.0.0","gulp-tslint":"^1.4.3","gulp-typescript":"^2.4.2","mocha":"^2.2.1","sinon":"^1.13.0","sinon-chai":"^2.7.0","through2":"^0.6.3"},"dependencies":{"buffer-equals":"^1.0.3","iconv-lite":"0.4.11"},"gitHead":"65d80d4bcd3d125b5a637d0036916704a03664a2","_id":"linez@4.1.1","_shasum":"4f3b1f66097fe85f6f2d99d4fd9257a248e48bbc","_from":".","_npmVersion":"2.14.3","_nodeVersion":"4.1.0","_npmUser":{"name":"jedmao","email":"jedmao@outlook.com"},"dist":{"shasum":"4f3b1f66097fe85f6f2d99d4fd9257a248e48bbc","size":32223,"noattachment":false,"key":"/linez/-/linez-4.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/linez/download/linez-4.1.1.tgz"},"maintainers":[{"name":"jedmao","email":"jed.hunsaker+npm@gmail.com"}],"directories":{},"_cnpmcore_publish_time":"2021-12-20T06:30:38.046Z","publish_time":1443717006098,"_cnpm_publish_time":1443717006098},"4.1.0":{"name":"linez","version":"4.1.0","author":{"name":"Jed Mao","email":"jedmao@outlook.com"},"description":"Parses lines from text, preserving line numbers, offsets and line endings.","keywords":["lines","line","parse","text","newline","ending"],"main":"js/linez.js","scripts":{"test":"gulp test"},"repository":{"type":"git","url":"git+https://github.com/jedmao/linez.git"},"homepage":"https://github.com/jedmao/linez","bugs":{"url":"https://github.com/jedmao/linez/issues"},"license":"MIT","devDependencies":{"chai":"^2.1.1","del":"^1.1.1","event-stream":"^3.3.0","gulp":"^3.8.11","gulp-istanbul":"^0.6.0","gulp-mocha":"^2.0.0","gulp-plumber":"^1.0.0","gulp-tslint":"^1.4.3","gulp-typescript":"^2.4.2","mocha":"^2.2.1","sinon":"^1.13.0","sinon-chai":"^2.7.0","through2":"^0.6.3"},"dependencies":{"buffer-equals":"^1.0.3","iconv-lite":"^0.4.7"},"gitHead":"6cadbf8b0e63f28eb46c10723cf43627c23570ac","_id":"linez@4.1.0","_shasum":"d88d43f8d6b1823a75fda93a98f1618d7f56e089","_from":".","_npmVersion":"2.11.3","_nodeVersion":"0.12.7","_npmUser":{"name":"jedmao","email":"jedmao@outlook.com"},"maintainers":[{"name":"jedmao","email":"jed.hunsaker+npm@gmail.com"}],"dist":{"shasum":"d88d43f8d6b1823a75fda93a98f1618d7f56e089","size":32211,"noattachment":false,"key":"/linez/-/linez-4.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/linez/download/linez-4.1.0.tgz"},"directories":{},"_cnpmcore_publish_time":"2021-12-20T06:30:36.964Z","publish_time":1438298401965,"_cnpm_publish_time":1438298401965},"4.0.0":{"name":"linez","version":"4.0.0","author":{"name":"Jed Mao","email":"jedmao@outlook.com"},"description":"Parses lines from text, preserving line numbers, offsets and line endings.","keywords":["lines","line","parse","text","newline","ending"],"main":"js/linez.js","scripts":{"test":"gulp test"},"repository":{"type":"git","url":"git+https://github.com/jedmao/linez.git"},"homepage":"https://github.com/jedmao/linez","bugs":{"url":"https://github.com/jedmao/linez/issues"},"license":"MIT","devDependencies":{"chai":"^2.1.1","del":"^1.1.1","event-stream":"^3.3.0","gulp":"^3.8.11","gulp-istanbul":"^0.6.0","gulp-mocha":"^2.0.0","gulp-plumber":"^1.0.0","gulp-tslint":"^1.4.3","gulp-typescript":"^2.4.2","mocha":"^2.2.1","sinon":"^1.13.0","sinon-chai":"^2.7.0","through2":"^0.6.3"},"dependencies":{"iconv-lite":"^0.4.7"},"gitHead":"2a1364c4e5bf2e41744e770c6e241bb640f8e1d4","_id":"linez@4.0.0","_shasum":"80a08816ec54a1966e29973cea90a6216343cd2d","_from":".","_npmVersion":"2.11.3","_nodeVersion":"0.12.7","_npmUser":{"name":"jedmao","email":"jedmao@outlook.com"},"maintainers":[{"name":"jedmao","email":"jed.hunsaker+npm@gmail.com"}],"dist":{"shasum":"80a08816ec54a1966e29973cea90a6216343cd2d","size":32152,"noattachment":false,"key":"/linez/-/linez-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/linez/download/linez-4.0.0.tgz"},"directories":{},"_cnpmcore_publish_time":"2021-12-20T06:30:35.874Z","publish_time":1438287397220,"_cnpm_publish_time":1438287397220},"3.2.1":{"name":"linez","version":"3.2.1","author":{"name":"Jed Mao","email":"jedmao@outlook.com"},"description":"Parses lines from text, preserving line numbers, offsets and line endings.","keywords":["lines","line","parse","text","newline","ending"],"main":"js/linez.js","scripts":{"test":"gulp test"},"repository":{"type":"git","url":"https://github.com/jedmao/linez.git"},"homepage":"https://github.com/jedmao/linez","bugs":{"url":"https://github.com/jedmao/linez/issues"},"license":"MIT","devDependencies":{"chai":"^2.1.1","del":"^1.1.1","event-stream":"^3.3.0","gulp":"^3.8.11","gulp-istanbul":"^0.6.0","gulp-mocha":"^2.0.0","gulp-plumber":"^1.0.0","gulp-tslint":"^1.4.3","gulp-typescript":"^2.4.2","mocha":"^2.2.1","sinon":"^1.13.0","sinon-chai":"^2.7.0","through2":"^0.6.3"},"dependencies":{"iconv-lite":"^0.4.7"},"gitHead":"05f351776a3a3cd1932edcc276eb1c2ad1de635a","_id":"linez@3.2.1","_shasum":"8bfbecd901fc507c8652eadfe8db4d06fe97de97","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"jedmao","email":"jedmao@outlook.com"},"maintainers":[{"name":"jedmao","email":"jed.hunsaker+npm@gmail.com"}],"dist":{"shasum":"8bfbecd901fc507c8652eadfe8db4d06fe97de97","size":17082,"noattachment":false,"key":"/linez/-/linez-3.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/linez/download/linez-3.2.1.tgz"},"directories":{},"_cnpmcore_publish_time":"2021-12-20T06:30:34.810Z","publish_time":1426579648649,"_cnpm_publish_time":1426579648649},"3.2.0":{"name":"linez","version":"3.2.0","author":{"name":"Jed Mao","email":"jedmao@outlook.com"},"description":"Parses lines from text, preserving line numbers, offsets and line endings.","keywords":["lines","line","parse","text","newline","ending"],"main":"js/linez.js","scripts":{"test":"gulp test"},"repository":{"type":"git","url":"https://github.com/jedmao/linez.git"},"homepage":"https://github.com/jedmao/linez","bugs":{"url":"https://github.com/jedmao/linez/issues"},"license":"MIT","devDependencies":{"chai":"^2.1.1","del":"^1.1.1","event-stream":"^3.3.0","gulp":"^3.8.11","gulp-istanbul":"^0.6.0","gulp-mocha":"^2.0.0","gulp-plumber":"^1.0.0","gulp-tslint":"^1.4.3","gulp-typescript":"^2.4.2","mocha":"^2.2.1","sinon":"^1.13.0","sinon-chai":"^2.7.0","through2":"^0.6.3"},"dependencies":{"iconv-lite":"^0.4.7"},"gitHead":"fa643294a9123c849ae2c1ee8229890903e0deb3","_id":"linez@3.2.0","_shasum":"076226af0599ec3b210f783056273b88af6ed6ec","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"jedmao","email":"jedmao@outlook.com"},"maintainers":[{"name":"jedmao","email":"jed.hunsaker+npm@gmail.com"}],"dist":{"shasum":"076226af0599ec3b210f783056273b88af6ed6ec","size":18839,"noattachment":false,"key":"/linez/-/linez-3.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/linez/download/linez-3.2.0.tgz"},"directories":{},"_cnpmcore_publish_time":"2021-12-20T06:30:34.477Z","publish_time":1426495310700,"_cnpm_publish_time":1426495310700},"3.1.1":{"name":"linez","version":"3.1.1","author":{"name":"Jed Mao","email":"jedmao@outlook.com"},"description":"Parses lines from text, preserving line numbers, offsets and line endings.","keywords":["lines","line","parse","text","newline","ending"],"main":"js/linez.js","scripts":{"test":"gulp test"},"repository":{"type":"git","url":"https://github.com/jedmao/linez.git"},"homepage":"https://github.com/jedmao/linez","bugs":{"url":"https://github.com/jedmao/linez/issues"},"license":"MIT","devDependencies":{"chai":"^2.1.1","del":"^1.1.1","event-stream":"^3.3.0","gulp":"^3.8.11","gulp-istanbul":"^0.6.0","gulp-mocha":"^2.0.0","gulp-plumber":"^1.0.0","gulp-tslint":"^1.4.3","gulp-typescript":"^2.4.2","mocha":"^2.2.1","sinon":"^1.13.0","sinon-chai":"^2.7.0","through2":"^0.6.3"},"dependencies":{"iconv-lite":"^0.4.7"},"gitHead":"0869e501f077b069b97d0846cee24e57c181f314","_id":"linez@3.1.1","_shasum":"903465256ccc58cd0f5bb7548da92fb9e53c4797","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"jedmao","email":"jedmao@outlook.com"},"maintainers":[{"name":"jedmao","email":"jed.hunsaker+npm@gmail.com"}],"dist":{"shasum":"903465256ccc58cd0f5bb7548da92fb9e53c4797","size":18762,"noattachment":false,"key":"/linez/-/linez-3.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/linez/download/linez-3.1.1.tgz"},"directories":{},"_cnpmcore_publish_time":"2021-12-20T06:30:33.572Z","publish_time":1426493017623,"_cnpm_publish_time":1426493017623},"3.1.0":{"name":"linez","version":"3.1.0","author":{"name":"Jed Mao","email":"jedmao@outlook.com"},"description":"Parses lines from text, preserving line numbers, offsets and line endings.","keywords":["lines","line","parse","text","newline","ending"],"main":"js/linez.js","scripts":{"test":"gulp test"},"repository":{"type":"git","url":"https://github.com/jedmao/linez.git"},"homepage":"https://github.com/jedmao/linez","bugs":{"url":"https://github.com/jedmao/linez/issues"},"license":"MIT","devDependencies":{"chai":"^2.1.1","del":"^1.1.1","event-stream":"^3.3.0","gulp":"^3.8.11","gulp-istanbul":"^0.6.0","gulp-mocha":"^2.0.0","gulp-plumber":"^1.0.0","gulp-tslint":"^1.4.3","gulp-typescript":"^2.4.2","mocha":"^2.2.1","sinon":"^1.13.0","sinon-chai":"^2.7.0","through2":"^0.6.3"},"gitHead":"628969d7ea7b222b9f8c014563afdce3cfb6a967","_id":"linez@3.1.0","_shasum":"8c098e2811fad818940b16686d4b3de5adee0c22","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"jedmao","email":"jedmao@outlook.com"},"maintainers":[{"name":"jedmao","email":"jed.hunsaker+npm@gmail.com"}],"dist":{"shasum":"8c098e2811fad818940b16686d4b3de5adee0c22","size":17006,"noattachment":false,"key":"/linez/-/linez-3.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/linez/download/linez-3.1.0.tgz"},"directories":{},"_cnpmcore_publish_time":"2021-12-20T06:30:32.488Z","publish_time":1426491321670,"_cnpm_publish_time":1426491321670},"3.0.0":{"name":"linez","version":"3.0.0","author":{"name":"Jed Mao","email":"jedmao@outlook.com"},"description":"Parses lines from text, preserving line numbers, offsets and line endings.","keywords":["lines","line","parse","text","newline","ending"],"main":"js/linez.js","scripts":{"test":"gulp test"},"repository":{"type":"git","url":"https://github.com/jedmao/linez.git"},"homepage":"https://github.com/jedmao/linez","bugs":{"url":"https://github.com/jedmao/linez/issues"},"license":"MIT","devDependencies":{"chai":"^2.1.1","del":"^1.1.1","event-stream":"^3.3.0","gulp":"^3.8.11","gulp-istanbul":"^0.6.0","gulp-mocha":"^2.0.0","gulp-plumber":"^1.0.0","gulp-tslint":"^1.4.3","gulp-typescript":"^2.4.2","mocha":"^2.2.1","sinon":"^1.13.0","sinon-chai":"^2.7.0","through2":"^0.6.3"},"gitHead":"26c1cd886aceb8f1fa675fdc442b0e232263f200","_id":"linez@3.0.0","_shasum":"da6413491596760d6747d7f33479e3eb14d6a918","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"jedmao","email":"jedmao@outlook.com"},"maintainers":[{"name":"jedmao","email":"jed.hunsaker+npm@gmail.com"}],"dist":{"shasum":"da6413491596760d6747d7f33479e3eb14d6a918","size":16867,"noattachment":false,"key":"/linez/-/linez-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/linez/download/linez-3.0.0.tgz"},"directories":{},"_cnpmcore_publish_time":"2021-12-20T06:30:31.601Z","publish_time":1426365889507,"_cnpm_publish_time":1426365889507},"2.1.1":{"name":"linez","version":"2.1.1","author":{"name":"Jed Mao","email":"jedmao@outlook.com"},"description":"Parses lines from text, preserving line numbers, offsets and line endings.","keywords":["lines","line","parse","text","newline","ending"],"main":"js/linez.js","scripts":{"test":"gulp test"},"repository":{"type":"git","url":"https://github.com/jedmao/linez.git"},"homepage":"https://github.com/jedmao/linez","bugs":{"url":"https://github.com/jedmao/linez/issues"},"license":"MIT","devDependencies":{"chai":"^2.1.1","del":"^1.1.1","event-stream":"^3.3.0","gulp":"^3.8.11","gulp-istanbul":"^0.6.0","gulp-mocha":"^2.0.0","gulp-plumber":"^1.0.0","gulp-tslint":"^1.4.3","gulp-typescript":"^2.4.2","mocha":"^2.2.1","sinon":"^1.13.0","sinon-chai":"^2.7.0","through2":"^0.6.3"},"gitHead":"8aff4f4c756d4917c4fc4704d27044d44d51c85a","_id":"linez@2.1.1","_shasum":"a21e48202f566de2038fba07f147554d26961701","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"jedmao","email":"jedmao@outlook.com"},"maintainers":[{"name":"jedmao","email":"jed.hunsaker+npm@gmail.com"}],"dist":{"shasum":"a21e48202f566de2038fba07f147554d26961701","size":18239,"noattachment":false,"key":"/linez/-/linez-2.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/linez/download/linez-2.1.1.tgz"},"directories":{},"_cnpmcore_publish_time":"2021-12-20T06:30:30.711Z","publish_time":1426326443628,"_cnpm_publish_time":1426326443628},"2.1.0":{"name":"linez","version":"2.1.0","author":{"name":"Jed Mao","email":"jedmao@outlook.com"},"description":"Parses lines from text, preserving line numbers, offsets and line endings.","keywords":["lines","line","parse","text","newline","ending"],"main":"js/linez.js","scripts":{"test":"gulp test"},"repository":{"type":"git","url":"https://github.com/jedmao/linez.git"},"homepage":"https://github.com/jedmao/linez","bugs":{"url":"https://github.com/jedmao/linez/issues"},"license":"MIT","devDependencies":{"chai":"^2.1.1","del":"^1.1.1","event-stream":"^3.3.0","gulp":"^3.8.11","gulp-istanbul":"^0.6.0","gulp-mocha":"^2.0.0","gulp-plumber":"^1.0.0","gulp-tslint":"^1.4.3","gulp-typescript":"^2.4.2","mocha":"^2.2.1","sinon":"^1.13.0","sinon-chai":"^2.7.0","through2":"^0.6.3"},"gitHead":"f630d989d253f32a34e3b79d2dc3d1c48282e49b","_id":"linez@2.1.0","_shasum":"459c31d182b49fb4ce53cb852c95fc3f3aa4c5ec","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"jedmao","email":"jedmao@outlook.com"},"maintainers":[{"name":"jedmao","email":"jed.hunsaker+npm@gmail.com"}],"dist":{"shasum":"459c31d182b49fb4ce53cb852c95fc3f3aa4c5ec","size":18095,"noattachment":false,"key":"/linez/-/linez-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/linez/download/linez-2.1.0.tgz"},"directories":{},"_cnpmcore_publish_time":"2021-12-20T06:30:29.824Z","publish_time":1426324852913,"_cnpm_publish_time":1426324852913},"2.0.1":{"name":"linez","version":"2.0.1","author":{"name":"Jed Mao","email":"jedmao@outlook.com"},"description":"Parses lines from text, preserving line numbers, offsets and line endings.","keywords":["lines","line","parse","text","newline","ending"],"main":"js/linez.js","scripts":{"test":"gulp test"},"repository":{"type":"git","url":"https://github.com/jedmao/linez.git"},"homepage":"https://github.com/jedmao/linez","bugs":{"url":"https://github.com/jedmao/linez/issues"},"license":"MIT","devDependencies":{"chai":"^2.1.1","del":"^1.1.1","event-stream":"^3.3.0","gulp":"^3.8.11","gulp-istanbul":"^0.6.0","gulp-mocha":"^2.0.0","gulp-plumber":"^1.0.0","gulp-tslint":"^1.4.3","gulp-typescript":"^2.4.2","mocha":"^2.2.1","sinon":"^1.13.0","sinon-chai":"^2.7.0","through2":"^0.6.3"},"gitHead":"765f4a596ca3e27e09b0191fa431d5c91d528e8f","_id":"linez@2.0.1","_shasum":"ab8dc2fe2c13690bb0f89327f9f94d14897cb333","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"jedmao","email":"jedmao@outlook.com"},"maintainers":[{"name":"jedmao","email":"jed.hunsaker+npm@gmail.com"}],"dist":{"shasum":"ab8dc2fe2c13690bb0f89327f9f94d14897cb333","size":16883,"noattachment":false,"key":"/linez/-/linez-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/linez/download/linez-2.0.1.tgz"},"directories":{},"_cnpmcore_publish_time":"2021-12-20T06:30:28.954Z","publish_time":1425984741723,"_cnpm_publish_time":1425984741723},"2.0.0":{"name":"linez","version":"2.0.0","author":{"name":"Jed Mao","email":"jedmao@outlook.com"},"description":"Parses lines from text, preserving line numbers, offsets and line endings.","keywords":["lines","line","parse","text","newline","ending"],"main":"js/linez.js","scripts":{"test":"gulp test"},"repository":{"type":"git","url":"https://github.com/jedmao/linez.git"},"homepage":"https://github.com/jedmao/linez","bugs":{"url":"https://github.com/jedmao/linez/issues"},"license":"MIT","devDependencies":{"chai":"^2.1.1","del":"^1.1.1","event-stream":"^3.3.0","gulp":"^3.8.11","gulp-istanbul":"^0.6.0","gulp-mocha":"^2.0.0","gulp-plumber":"^1.0.0","gulp-tslint":"^1.4.3","gulp-typescript":"^2.4.2","mocha":"^2.2.1","sinon":"^1.13.0","sinon-chai":"^2.7.0","through2":"^0.6.3"},"gitHead":"bfaf684752487bb8efcf43b619991a13bef9eb36","_id":"linez@2.0.0","_shasum":"fb918889fd431df2541c9c94e5401727623e0d93","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"jedmao","email":"jedmao@outlook.com"},"maintainers":[{"name":"jedmao","email":"jed.hunsaker+npm@gmail.com"}],"dist":{"shasum":"fb918889fd431df2541c9c94e5401727623e0d93","size":16880,"noattachment":false,"key":"/linez/-/linez-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/linez/download/linez-2.0.0.tgz"},"directories":{},"_cnpmcore_publish_time":"2021-12-20T06:30:28.051Z","publish_time":1425983663872,"_cnpm_publish_time":1425983663872},"1.0.3":{"name":"linez","version":"1.0.3","author":{"name":"Jed Hunsaker","email":"jed.hunsaker+npm@gmail.com"},"description":"Parses lines from text, preserving line numbers, offsets and line endings.","keywords":["lines","line","parse","text","newline","ending"],"main":"./lib/api.js","scripts":{"postinstall":"bower install --production","test":"grunt test"},"repository":{"type":"git","url":"https://github.com/jedmao/linez.git"},"homepage":"https://github.com/jedmao/linez","bugs":{"url":"https://github.com/jedmao/linez/issues"},"license":"MIT","dependencies":{"bower":"~1.3.1","typescript-require":"~0.2.4"},"devDependencies":{"chai":"~1.8.1","grunt":"~0.4.2","grunt-contrib-clean":"~0.5.0","grunt-contrib-watch":"~0.5.3","grunt-mocha-test":"~0.9.4","grunt-typescript-compile":"~0.2.0","load-grunt-tasks":"~0.4.0","mocha":"~1.16.2","sinon":"~1.7.3","sinon-chai":"~2.4.0","time-grunt":"~0.2.10"},"_id":"linez@1.0.3","dist":{"shasum":"6e762b97b338db9a340d58f210c0d7ec33fbe75c","size":4737,"noattachment":false,"key":"/linez/-/linez-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/linez/download/linez-1.0.3.tgz"},"_from":"https://github.com/jedmao/linez/archive/v1.0.3.tar.gz","_resolved":"https://github.com/jedmao/linez/archive/v1.0.3.tar.gz","_npmVersion":"1.3.24","_npmUser":{"name":"jedmao","email":"jed.hunsaker+npm@gmail.com"},"maintainers":[{"name":"jedmao","email":"jed.hunsaker+npm@gmail.com"}],"directories":{},"_cnpmcore_publish_time":"2021-12-20T06:30:27.170Z","hasInstallScript":true,"publish_time":1394999228444,"_cnpm_publish_time":1394999228444},"0.1.1":{"name":"linez","version":"0.1.1","author":{"name":"Jed Hunsaker","email":"jed.hunsaker+npm@gmail.com"},"description":"Parses lines from text, preserving line numbers, offsets and line endings.","keywords":["lines","line","parse","text","newline","ending"],"main":"./lib/api.js","scripts":{"test":"grunt test"},"repository":{"type":"git","url":"https://github.com/jedmao/linez.git"},"homepage":"https://github.com/jedmao/linez","bugs":{"url":"https://github.com/jedmao/linez/issues"},"license":"MIT","dependencies":{"typescript-require":"~0.2.4"},"devDependencies":{"chai":"~1.8.1","grunt":"~0.4.2","grunt-contrib-clean":"~0.5.0","grunt-contrib-watch":"~0.5.3","grunt-mocha-test":"~0.9.4","grunt-typescript-compile":"~0.2.0","load-grunt-tasks":"~0.4.0","mocha":"~1.16.2","sinon":"~1.7.3","sinon-chai":"~2.4.0","time-grunt":"~0.2.10"},"_id":"linez@0.1.1","dist":{"shasum":"c94c4625534ae2c95ab88180df9bb7bd44b1beb9","size":4310,"noattachment":false,"key":"/linez/-/linez-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/linez/download/linez-0.1.1.tgz"},"_from":"https://github.com/jedmao/linez/archive/v0.1.1.tar.gz","_resolved":"https://github.com/jedmao/linez/archive/v0.1.1.tar.gz","_npmVersion":"1.3.24","_npmUser":{"name":"jedhunsaker","email":"jed.hunsaker@gmail.com"},"maintainers":[{"name":"jedmao","email":"jed.hunsaker+npm@gmail.com"}],"directories":{},"_cnpmcore_publish_time":"2021-12-20T06:30:26.287Z","publish_time":1394204882582,"_cnpm_publish_time":1394204882582},"0.1.0":{"name":"linez","version":"0.1.0","author":{"name":"Jed Hunsaker","email":"jed.hunsaker+npm@gmail.com"},"description":"Parses lines from text, preserving line numbers, offsets and line endings.","keywords":["lines","line","parse","text","newline","ending"],"main":"./lib/api.js","scripts":{"test":"grunt test"},"repository":{"type":"git","url":"https://github.com/jedmao/linez.git"},"homepage":"https://github.com/jedmao/linez","bugs":{"url":"https://github.com/jedmao/linez/issues"},"license":"MIT","dependencies":{"typescript-require":"~0.2.4"},"devDependencies":{"chai":"~1.8.1","grunt":"~0.4.2","grunt-contrib-clean":"~0.5.0","grunt-contrib-watch":"~0.5.3","grunt-mocha-test":"~0.9.4","grunt-typescript-compile":"~0.2.0","load-grunt-tasks":"~0.4.0","mocha":"~1.16.2","sinon":"~1.7.3","sinon-chai":"~2.4.0","time-grunt":"~0.2.10"},"_id":"linez@0.1.0","dist":{"shasum":"75077d05d3e4195d58bab6738a2e17e6acf9e0f9","size":3995,"noattachment":false,"key":"/linez/-/linez-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/linez/download/linez-0.1.0.tgz"},"_from":"https://github.com/jedmao/linez/archive/v0.1.0.tar.gz","_resolved":"https://github.com/jedmao/linez/archive/v0.1.0.tar.gz","_npmVersion":"1.3.24","_npmUser":{"name":"jedhunsaker","email":"jed.hunsaker@gmail.com"},"maintainers":[{"name":"jedmao","email":"jed.hunsaker+npm@gmail.com"}],"directories":{},"_cnpmcore_publish_time":"2021-12-20T06:30:25.411Z","publish_time":1394084521351,"_cnpm_publish_time":1394084521351}},"readme":"# linez\n\n> Parses lines from text, preserving line numbers, offsets and line endings.\n\n[![Build Status](https://secure.travis-ci.org/jedmao/linez.svg?branch=master)](http://travis-ci.org/jedmao/linez)\n[![Dependency Status](https://gemnasium.com/jedmao/linez.svg)](https://gemnasium.com/jedmao/linez)\n[![npm version](https://badge.fury.io/js/linez.svg)](http://badge.fury.io/js/linez)\n[![codecov](https://codecov.io/gh/jedmao/linez/branch/master/graph/badge.svg)](https://codecov.io/gh/jedmao/linez)\n\n[![npm](https://nodei.co/npm/linez.png?downloads=true)](https://nodei.co/npm/linez/)\n\n\n## Getting Started\n\n### Installation\n\n```bash\n$ npm install linez\n```\n\n### Importing\n\n#### TypeScript\n\n```ts\nimport * as linez from 'linez';\n```\n\n#### Babel/ES6+\n\n```js\nimport linez from 'linez';\n```\n\n#### JavaScript\n\n```js\nvar linez = require('linez');\n```\n\n## Introduction\n\nBy default, linez uses `/\\r?\\n/g` as the regular expression to detect newline character sequences and split lines. This regular expression is tuned for performance and only covers the most common newline types (i.e., `\\n` and `\\r\\n`). If you have need for more newline character sequences, you can configure linez with the `configure` method.\n\n```js\nlinez.configure({\n  newlines: ['\\n', '\\r\\n', '\\r', '\\u000B']\n});\n```\n\nSetting this property will automatically create a piped regular expression for you and use it in any future `linez()` calls. You can make up your own newlines if you want. Linez doesn't care one way or the other.\n\n```js\nlinez.configure({\n  newlines: ['foo', 'bar']\n});\n```\n\nThis would be converted into `/(foo|bar)/g`. Newlines are just strings. They can be anything. There are, however, some known newline character sequences. Should you need them, refer to the following table:\n\n| String   | Unicode        | Name                        |\n| -------- |:-------------- |:--------------------------- |\n| `\\n`     | U+000A         | Line feed                   |\n| `\\r\\n`   | U+000D, U+000A | Carriage Return + Line Feed |\n| `\\r`     | U+000D         | Carriage Return             |\n| `\\u000B` | U+000B         | Vertical Tab                |\n| `\\u000C` | U+000C         | Form Feed                   |\n| `\\u0085` | U+0085         | Next Line                   |\n| `\\u2028` | U+2028         | Line Separator              |\n| `\\u2029` | U+2029         | Paragraph Separator         |\n\n\n### Byte Order Marks\n\nAlso referred to as BOM signatures, these are the bytes at the beginning of a file that indicating the encoding in which the file is written. Currently, linez only reads BOMs to detect the encoding and does not take into account the contents of the file.\n\n#### Supported BOMs\n\n- utf-8-bom\n- utf-16le\n- utf-16be\n\n#### Unsupported BOMs\n\n- utf-32le\n- utf-32be\n\nIf linez detects an unsupported BOM, an error will be thrown, indicating that decoding the detected charset is not supported.\n\n#### Default decoding\n\nBy default, the document will attempt to be decoded as utf8. This is the default behavior of [the Node API's conversion from buffers into strings](https://nodejs.org/api/buffer.html#buffer_buf_tostring_encoding_start_end).\n\n\n# API\n\n\n### configure(options: IOptions)\n\nConfigures linez to use the supplied options. Currently, only the newlines property is available, where you can specify any number of newline character sequences.\n\n```js\nlinez.configure({\n  newlines: ['\\n', '\\r\\n', '\\r', '\\u000B']\n});\n```\n\n### resetConfiguration()\n\nResets the configuration to the default settings, using `/\\r?\\n/g` as the newlines regular expression.\n\n\n### Document\n\n```ts\nconstructor(public lines: Line[]);\n```\n\nCalling the `toString()` method converts the document's lines into a string, discarding information about line numbers and offsets.\n\n\n### Line\n\n```ts\ninterface Line {\n  offset: number;\n  number: number;\n  text: string;\n  ending: string;\n}\n```\n\n### Options\n\n```ts\ninterface Options {\n  newlines?: string[];\n}\n```\n\n\n### linez(file: string|Buffer): Document\n\nParses text into a `Document`.\n\n[The specs](https://github.com/jedmao/linez/blob/master/lib/linez.spec.ts) show some great usage examples.\n\n```ts\nvar lines = linez('foo\\nbar\\nbaz').lines;\nlines[1].offset; // 4\nlines[1].number; // 2\nlines[1].text; // bar\nlines[1].ending; // \\n\n```\n\nNote: You can also pass-in a Buffer.\n\n\n## License\n\nReleased under the MIT license.\n","_attachments":{},"homepage":"https://github.com/jedmao/linez","bugs":{"url":"https://github.com/jedmao/linez/issues"},"license":"MIT"}