{"_id":"read-last-lines-ts","_rev":"5-349027a86d24c0401c090dde2a656652","name":"read-last-lines-ts","dist-tags":{"latest":"1.2.1"},"versions":{"1.0.0":{"name":"read-last-lines-ts","version":"1.0.0","description":"Efficiently reads the last lines of a file, written in TypeScript for intellisense","main":"lib/index.js","types":"lib/index.d.ts","repository":{"type":"git","url":"https://github.com/Speykious/read-last-lines-ts"},"author":{"name":"Speykious"},"keywords":["read","last","lines","file","typescript","fast"],"scripts":{"build":"tsc","test":"jest --config jestconfig.json"},"license":"MIT","devDependencies":{"@types/jest":"^26.0.9","@types/node":"^14.0.27","ansi-colors-ts":"^0.0.1","faker":"^4.1.0","jest":"^26.2.2","read-last-lines":"^1.7.2","ts-jest":"^26.1.4","typescript":"^3.9.7"},"licenseText":"Copyright (c) 2020 Speykious\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.","_id":"read-last-lines-ts@1.0.0","dist":{"shasum":"41dc3b199bcc1a1a36ddf5febcb13207d5116b1d","integrity":"sha512-ELJ4XkDI7cE14U6egsp/JPm5OmCs/t+1cHwlXTaZ/T3G4ktNPd+eIIuUtO68fI86OzcQePAk774atawXZOIzQA==","tarball":"https://registry.npmjs.org/read-last-lines-ts/-/read-last-lines-ts-1.0.0.tgz","fileCount":8,"unpackedSize":8171,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfMY/ZCRA9TVsSAnZWagAARhYP/29a+ntoZci0JxjRue3e\n71JjB9JMV+feXfxSymVKFBhR9xtVQbtPddmQuz2nX7H9zrC2X7OXefDHEdJQ\nR49mwPpzy8yCRLUT8weNugs3IQLFGmv6/7VAX46BzH5GafTRKXFL0Fh2F1gR\n5gMtzNB+CHOHjaw2SrkqSQD0Sc9g2tGkgvJGw6ceEo5tI7I2pzGPY6ZcAlHO\n5BljrPkSyu1U5RO7NAsAZfi5k53cF96gId2UJdGapooNyoPQEh1+ZFE3tPsH\n6hxYYciZUuCuOoX4/96Hh/BMNoTdaj5aff3GEz33Z4zTAbN9EePRfLq9X4kD\ne7JMcY7vMIRDaog7HDkAHKuHDY6kjMK3lsjK9gqQvXldcDL8s4ngfjH5Nfld\n6gzXHMmoT/lhmbj1y/PpuvUUiWEtP/NHqB3cIaFvUmQzbRaDHhpijH2FpypO\nCrVjwsGz+uehtbd8hLnS3OHgRgZMkCiXB286w5qqjDJ69mR7ZWMGNpQgYQBM\nZKd7Lu8YSKA5aT2OIzyRHLdwSQzF2CbXB8q7Ycll2AitQ4xgHJKXlKFPkl5g\nz3iv73CXUmIerVWgpKlBZgKLfMUabrT+D3Hz3PnR4UpeSjvrZ6bfHiKykMY+\n+IqgWwbt+pfswOc3qfR5FLVLuCN+5fQCVy2Tk/e/1A0PEqtj1ywuwINVhEbC\nAAjP\r\n=GpOY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCzRjoFBJLY6dgBVBzhB/PzfFV9pfRAhaN+OlADxeDZLQIhALTqBxLVe3OIdz1D/8S0bAo6xFGOg2gae3QQop0b2yFZ"}]},"maintainers":[{"name":"speykious","email":"speykious.the.king@gmail.com"}],"_npmUser":{"name":"speykious","email":"speykious.the.king@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/read-last-lines-ts_1.0.0_1597083609303_0.22113714143465368"},"_hasShrinkwrap":false},"1.0.1":{"name":"read-last-lines-ts","version":"1.0.1","description":"Efficiently reads the last lines of a file, written in TypeScript for intellisense","main":"lib/index.js","types":"lib/index.d.ts","repository":{"type":"git","url":"https://github.com/Speykious/read-last-lines-ts"},"author":{"name":"Speykious"},"keywords":["read","last","lines","file","typescript","fast"],"scripts":{"build":"tsc","test":"jest --config jestconfig.json"},"license":"MIT","devDependencies":{"@types/jest":"^26.0.9","@types/node":"^14.0.27","ansi-colors-ts":"^0.0.1","faker":"^4.1.0","jest":"^26.2.2","read-last-lines":"^1.7.2","ts-jest":"^26.1.4","typescript":"^3.9.7"},"licenseText":"Copyright (c) 2020 Speykious\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.","_id":"read-last-lines-ts@1.0.1","dist":{"shasum":"81beed582b44afce9c3ca48fcd6b029df917d4dc","integrity":"sha512-RW2JinfTySMP4YSyrVBipF/STe+qoiqJocFJ/8tNodWdbpbd5BWL23Rbn+O3McesT/cy4Nv/6qj8kFjgNUbPFQ==","tarball":"https://registry.npmjs.org/read-last-lines-ts/-/read-last-lines-ts-1.0.1.tgz","fileCount":8,"unpackedSize":8171,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfMZ+/CRA9TVsSAnZWagAAmQQP/18X8XUhH4bCEmxiqHC0\nN9H3beJhaaaX2P9ORF3IFy/pB5WNoxS84tBDtGtL/C1qfigREQSvBXLyy108\n4o5CnsapwUbIeGTg4lm1Qkk0ydgY+Trw8qB3wkOAqtXPVpNwgkO6bnjV1r/Q\nz44gP0jMv3SquW9UyhKyCvT/W3gy0LwK7VpQMqY/hHfFVQJ72UhmaOwatXhg\nUEXmp8eahLrG4zJFsfdky4FgmOUh4Bm1ik0WMjzHdF48w7ziiyx9RQzMdlKE\ntpnFbSgIv+qxB7CMfLUu0cL85bi3a2ugfo0TzQ6wcXDxcVGey7xDVCrGgleE\njFtu9QJvzH7XbG/irgKpk1aNHTeZKIdP8+mqC1hUJFem5DQJ9rWRxTRUhDT0\nDgXLvyn5VR+b5HLH15hW799nadQaqo8uhWsnVoByEvIkDRTgOcRn91Eds0+J\n/vQR6We3ihRxChWVdbi3rwx/JEoEMI9+gnS4dAyI6ZLfjCWXDzJLknjJE2JY\nZ+vFnFx9YehXBCBG1uxpNVjtuKNBmuVkphxohk6UXmOcoYT6mXbtPJuEtQW8\nEXtgsQpT5nVSSULiBHK0gOoIK/6fNfoHfC70ZXDqLVQdQzGHZrYh9w5x7hqk\nIyzPHtc8CLSdf0oIAEeQRnOjjw9lDI9H3NjlhcZ6RWytgCH1Vuv/R2/QT2cU\newk4\r\n=X53d\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDAE4bDElRUm36bgesSgiSX84R2dBSpQO57mnIHiZhP0wIgFGM9mOI68/1fLJXGssG4gQy/ZZ+XesjClxhI/hstKD4="}]},"maintainers":[{"name":"speykious","email":"speykious.the.king@gmail.com"}],"_npmUser":{"name":"speykious","email":"speykious.the.king@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/read-last-lines-ts_1.0.1_1597087678786_0.5634264532771436"},"_hasShrinkwrap":false},"1.1.0":{"name":"read-last-lines-ts","version":"1.1.0","description":"Efficiently reads the last lines of a file, written in TypeScript for intellisense","main":"lib/index.js","types":"lib/index.d.ts","repository":{"type":"git","url":"https://github.com/Speykious/read-last-lines-ts"},"author":{"name":"Speykious"},"keywords":["read","last","lines","file","typescript","fast"],"scripts":{"build":"tsc","test":"jest --config jestconfig.json","all":"yarn build && yarn test"},"license":"MIT","devDependencies":{"@types/jest":"^26.0.9","@types/node":"^14.0.27","ansi-colors-ts":"^0.0.1","faker":"^4.1.0","jest":"^26.2.2","read-last-lines":"^1.7.2","ts-jest":"^26.1.4","typescript":"^3.9.7"},"licenseText":"Copyright (c) 2020 Speykious\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.","_id":"read-last-lines-ts@1.1.0","dist":{"shasum":"bbc1a3c9dab796e7abdff22c42732d0a565261f8","integrity":"sha512-HKJpXOO2rxmjnuewsmIZ1NK/NfcjAr4CXrTregEC1dGERhtYcYStR6OpgPSpcWBaasqfK0UznN2hpLX4eHDpaw==","tarball":"https://registry.npmjs.org/read-last-lines-ts/-/read-last-lines-ts-1.1.0.tgz","fileCount":8,"unpackedSize":11351,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfOW3jCRA9TVsSAnZWagAA2LAP/RGtxIFh9VPg2igax45H\nKAAxgwGMEZCkd4OrtjAYBFJY5SIpyag2uOz1XdiDZQN7nEMItk44dPlf9H8e\n+xBuWs1RzpWxqHtO8Lfp/KGdpA0wRhOJmNQlv0WlJSP7uT0x7Jv6NUb98+qP\ncUKZ8X1xpziH/T26Crtg40b9YdmzUXkgDMF4MIp9s09avMdBOWWoolk7MyNP\nHd/yhapIC4+G/YwF5uSgzUFzqraqsRDmA9bbERD4PLw+ll1fol0pzjwq0dzq\n8es3fYkmbCzJMfnBBk7yJpEhUk/XfaPx82t1lfGwKGg47fvy8PSM09VNQoTa\n4/bFAqryzhgkAsTHUjjAc9FOVRpsH/QSTiOySZrq0PT0nqhGDKMxMbXPSldR\nTHe83feVm/KIEo9rMK5Ry7dAa0+XB45CpY8ApSA1KZ4oWXBNso9QO5pfReAy\nbQE+F3FLUbYelorRP1KsPPkWs8XXGP+4r3hp4p6azE20WlfrrS6NYPjsoWhT\ny1jd+nWbEv2n+zHcJ1034KzM3nkP6dvH6VQBmR+YgNIdvOiozPsHuG5KQyOs\noMXhQf62L1/VAfwzGTTqBfnmf3bsAs0OQpuEir1OFU2Rjbdybt2SZmc+J+ns\nuYjensQlPesWncuoAJNFD4Fy7z2eGBOzlWQYbwlZq8tvnR9PxmHtw4l7JgXW\nr84O\r\n=Egij\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG2NjtZbg3EkRqJnqwKH5Hd6zzWQbljSv96MG214lHAtAiBe0hLKd4eemO7fOvaIIb+l5X6VLDJqA/9vierPLGCktQ=="}]},"maintainers":[{"name":"speykious","email":"speykious.the.king@gmail.com"}],"_npmUser":{"name":"speykious","email":"speykious@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/read-last-lines-ts_1.1.0_1597599202828_0.29217761009419774"},"_hasShrinkwrap":false},"1.2.0":{"name":"read-last-lines-ts","version":"1.2.0","description":"Efficiently reads the last lines of a file, written in TypeScript for intellisense","main":"lib/index.js","types":"lib/index.d.ts","repository":{"type":"git","url":"https://github.com/Speykious/read-last-lines-ts"},"author":{"name":"Speykious"},"keywords":["read","last","lines","file","typescript","fast"],"scripts":{"build":"tsc","test":"mocha -r ts-node/register 'tests/**/*.ts'","all":"yarn build && yarn test"},"license":"MIT","devDependencies":{"@types/chai":"^4.2.21","@types/mocha":"^9.0.0","@types/node":"^14.0.27","ansi-colors-ts":"^0.0.1","chai":"^4.3.4","faker":"^4.1.0","mocha":"^9.1.1","read-last-lines":"^1.7.2","ts-node":"^10.2.1","typescript":"^3.9.7"},"licenseText":"Copyright (c) 2020 Speykious\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.","_id":"read-last-lines-ts@1.2.0","dist":{"shasum":"db06d33caba040615b190127e912da013ade0bb8","integrity":"sha512-WZ2uIEzaiZoH9S0LhZ5ox7KHE+dxhw+49enY6QvYRVen3KfG1A+DdKRQX/mSL76kZfRTmXwV4V59vqdBqlZTyg==","tarball":"https://registry.npmjs.org/read-last-lines-ts/-/read-last-lines-ts-1.2.0.tgz","fileCount":8,"unpackedSize":14665,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhLsLNCRA9TVsSAnZWagAAY88P/2JrMUu3nFcSLvRVAYh3\nZlaY43dp+hxdEdoW203C3BQmcNoA7P+zwoCD/1owjhJCJEIJ/BdtYApvhm1P\nUF6WIy2LHdfmkEKDwtTGoHKXtB5G4k9hrczIFpjtJDVm8dGMvV14AZBSYc9S\nJkbfwKXyWXF2bvFpTuwNvS59NkoOXy62JXAD5N0HSOLg10Ky4oFE98zlnFgN\nRH9HjpttcwA83UveERy0neKCZM7ZWrzCyE1Ir+gVPxAWwntuTvcKOxPLXQqc\nuTpdiD1o4PBmw2gv8Lh/o62moM11AI5+5b/bu+bUKRko1knHH6/4+aLTCXAR\nCeeobibzP3x6aMdhI58p24IYOap5csig2YXeH/FO/BR2QWTd7Cs0n6Hhpkl/\nH0CFy/PkJ8GmVBwxBKv3LeXFn6xJVsQEEZYpjdFgBMWODls/sbruyBxpRsDL\nT1vgF46a4SZesw0E4h17DtPL7shvQ49JyEAdTHsA88j0aabXSk2M1gyv54tQ\nSfo54CE8O9pU/FdbxhCHeacR5H3MQD3fyw4PYWpfRCJUHlJze9dXMrZ0F2j/\ntH3EFkwZDDEqECMNDdCMNWyGO3olWLD0t1cfWH5wDS9ZHVBIdVFnNB3M2O9p\nknv180yJcMoPM0uv3yqapvhIP4XJR7Sb60KwOhwPjci/r6qrnzO9wQsPBUxy\nh0Qt\r\n=xMI2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDR83JTDqNFiNYiYWgCM9qxGlbROo1KwQjYWwiXsUDk8AIgLDX8DHygI6xlOGy89+V2ODdWhTbMTNsJWlMBMlTeDK8="}]},"_npmUser":{"name":"speykious","email":"speykious@gmail.com"},"directories":{},"maintainers":[{"name":"speykious","email":"speykious@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/read-last-lines-ts_1.2.0_1630454477746_0.8507916668933881"},"_hasShrinkwrap":false},"1.2.1":{"name":"read-last-lines-ts","version":"1.2.1","description":"Efficiently reads the last lines of a file, written in TypeScript for intellisense","main":"lib/index.js","types":"lib/index.d.ts","repository":{"type":"git","url":"https://github.com/Speykious/read-last-lines-ts"},"author":{"name":"Speykious"},"keywords":["read","last","lines","file","typescript","fast"],"scripts":{"build":"tsc","test":"mocha -r ts-node/register 'tests/**/*.ts'","all":"yarn build && yarn test"},"license":"MIT","devDependencies":{"@types/chai":"^4.2.21","@types/mocha":"^9.0.0","@types/node":"^14.0.27","ansi-colors-ts":"^0.0.1","chai":"^4.3.4","faker":"^4.1.0","mocha":"^9.1.1","read-last-lines":"^1.7.2","ts-node":"^10.2.1","typescript":"^3.9.7"},"licenseText":"Copyright (c) 2020 Speykious\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.","_id":"read-last-lines-ts@1.2.1","dist":{"shasum":"99e46288c5373c06e16e90e666a46b595dad80a1","integrity":"sha512-1VcCrAU38DILYiF4sbNY13zdrMGwrFqjGQnXJy28G1zLJItvnWtgCbqoAJlnZZSiEICMKdM4Ol7LYvVMEoKrAg==","tarball":"https://registry.npmjs.org/read-last-lines-ts/-/read-last-lines-ts-1.2.1.tgz","fileCount":8,"unpackedSize":14921,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhMULdCRA9TVsSAnZWagAAnYIP/AjNeWzecZSt4qVdprmk\nc0zPV/kC39JcOZ8M78GwUjBzH7oVzjlxar4iErqZU5kUyG7OBUPlEB/y7bjn\nTOV12mv8U6+9tqdL5/eet1NuYR9SHybC3ZFIutIj+CQ5e49+GQK7Cu13SFNX\nfQ6AnbTokHecYMMZvkwVaIfqPwmOdWxPBtdoiLi63ZrtFYoB7VVluGOIIASO\nUozFR8C5JSFDwgm1bFJkmq97DCiwlwEYHxasc2Ulkk0uqX8sIMxEemG+5Rhu\nZ6nIfyy0kwofg7eUjk6aMDKOHEtewml1wqw1+CMFeS+R5tSCh4gUshsHPMCa\nCrmSSfiHSvxq1bqiA8e5+pnOFbMG4Ma9QfmY+Gctg0BNNzonY4byGrkK+w+U\nmYOPgowxXMNVWfaHN580iy4ZZpPxcXwWrz1D+7/dVns8nGM3YHJ8LPijlhz/\ncmE+Z8ScRCO/GKBLYBam29yNb2Y5znW4uW6/mU7WeD16n18RtMhXssp8zsRd\nOxNQd5/3V60Ieo1ZrmOswa+IrcH/D8wSpnvFke2IVXq6uSBpBD3Pxe5mfoOQ\n4yNEwEJQsASNbOrENFUR2aZBD1GrSwSeyOnuCLTQNmz2BE/TaFCYnir7e+pQ\nVcDRAlXBAni1V1kNBxonYwz1OjJlPNEY7DZ0K4mq1JOBLlZ0zB5ie0dV0oLE\nKnT3\r\n=LK/C\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDwLwvt+6iLu2yGboX7C7kKyLe3q/lK9aLkg1XEpPNrLAIhAMW9LHmYelbQRTpybUC+04H3XoEsNyQo4lsS1P+N5Jq5"}]},"_npmUser":{"name":"speykious","email":"speykious@gmail.com"},"directories":{},"maintainers":[{"name":"speykious","email":"speykious@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/read-last-lines-ts_1.2.1_1630618332963_0.888544106374217"},"_hasShrinkwrap":false}},"time":{"created":"2020-08-10T18:20:09.302Z","1.0.0":"2020-08-10T18:20:09.429Z","modified":"2022-05-15T12:04:55.132Z","1.0.1":"2020-08-10T19:27:58.919Z","1.1.0":"2020-08-16T17:33:22.965Z","1.2.0":"2021-09-01T00:01:17.893Z","1.2.1":"2021-09-02T21:32:13.498Z"},"maintainers":[{"name":"speykious","email":"speykious@gmail.com"}],"description":"Efficiently reads the last lines of a file, written in TypeScript for intellisense","keywords":["read","last","lines","file","typescript","fast"],"repository":{"type":"git","url":"https://github.com/Speykious/read-last-lines-ts"},"author":{"name":"Speykious"},"license":"MIT","readme":"# Read Last Lines (TypeScript)\n\nRead the last lines of a file, written in TypeScript for intellisense, rewritten\nfrom the current [read-last-lines](https://github.com/alexbbt/read-last-lines)\npackage by [Alexander Bell-Towne](https://github.com/alexbbt).\n\nCopyright © 2020 [Speykious](https://github.com/Speykious)\n\n***\nSummary\n- [Read Last Lines (TypeScript)](#read-last-lines-typescript)\n\t- [How to install](#how-to-install)\n\t- [How to use](#how-to-use)\n\t\t- [CommonJS syntax](#commonjs-syntax)\n\t\t- [ESX syntax](#esx-syntax)\n\t- [Miscellaneous](#miscellaneous)\n***\n\n## How to install\n\n- If you use `npm`: `npm install read-last-lines-ts --save`\n- If you use `yarn`: `yarn add read-last-lines-ts`\n\n\n## How to use\n\n`read-last-lines-ts` supports absolute and relative paths since version **1.1.0**.\n\n**New in v1.2.0**: *literally **1000** times faster!!!*\n\n### CommonJS syntax\nTo read the last 10 lines of a file in utf8 encoding:\n```js\nconst { readLastLines, readLastLinesEnc } = require(\"read-last-lines-ts\")\n\n// You get a Buffer from readLastLines\nconst buffer = readLastLines(\"path/to/file\", 10)\nconsole.log(buffer.toString(\"utf8\"))\n\n// You can specify a buffer length (default is 4096) ─ example: 50 chars at a time!\n// The bufferLength parameter is the length of the internal buffer used for reading\nconst buffer = readLastLines(\"path/to/file\", 10, 50)\n\n// Alternatively, you can use this curried function for builtin string conversion\n// (PS: the optional bufferLength parameter also works here)\nconst lines = readLastLinesEnc(\"utf8\")(\"path/to/file\", 10)\nconsole.log(lines)\n```\nYou can choose any encoding from the `BufferEncoding` enum from `fs`.\nAlso, the `readLastLinesEnc` function has been curried so that it is\neasier to deal with encoding: just make some variable\n`const rll_utf8 = readLastLinesEnc(\"utf8\")` and you got yourself a\nnice short function for reading last lines with utf8 encoding.\n\n### ESX syntax\nSame example:\n```js\nimport { readLastLines, readLastLinesEnc } from \"read-last-lines-ts\"\n\nconst buffer = readLastLines(\"path/to/file\", 10)\nconsole.log(buffer.toString(\"utf8\"))\n\n// Optional bufferLength argument\nconst buffer = readLastLines(\"path/to/file\", 10, 50)\n\n// Or:\nconst lines = readLastLinesEnc(\"utf8\")(\"path/to/file\", 10)\nconsole.log(lines)\n```\nYou can code in JavaScript, TypeScript, CoffeeScript, whatever is in your best interest.\n\n## Miscellaneous\nThe `read-last-lines-ts` package is very often\n**1000s of times faster** than the `read-last-lines` package,\nas these speed tests indicate:\n\n[![Test screenshot](resources/screenshot-test.png)](resources/screenshot-test.png)\n\nWhen I looked at the code for the `read` function of the `read-last-lines` package,\nthere were a lot of things for which I quite didn't understand the motivation behind.\n\nThere was absolutely no use of any kind of for loop or while loop, nor any use of async/await.\nMaybe it was for some kind of backwards-compatibility?\n\nAlso, why did they use a custom file system library `mz/fs` instead of the native `fs`?\nWas there no `fs` back then?\n\nThey also used a *ton* of async behavior on all kinds of\nplaces where it wasn't necessary. Maybe that was a factor for how slow it is compared\nto this modern sync version.\n\nIf someone wants to explain any of these things to me, or point out a bug / problem,\nor request a feature, don't hesitate to raise an issue on the [github repo](https://github.com/Speykious/read-last-lines-ts). 😁","readmeFilename":"README.md"}