{"id":21905372,"url":"https://github.com/hex7c0/startline","last_synced_at":"2026-05-06T02:37:21.275Z","repository":{"id":18424165,"uuid":"21606526","full_name":"hex7c0/startline","owner":"hex7c0","description":"stream readline with starting point for Nodejs","archived":false,"fork":false,"pushed_at":"2023-04-04T09:57:42.000Z","size":202,"stargazers_count":1,"open_issues_count":4,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-27T17:59:26.634Z","etag":null,"topics":["nodejs","startline"],"latest_commit_sha":null,"homepage":"https://github.com/hex7c0/startline","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hex7c0.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-07-08T09:15:50.000Z","updated_at":"2017-12-30T13:15:46.000Z","dependencies_parsed_at":"2024-11-28T16:43:52.193Z","dependency_job_id":null,"html_url":"https://github.com/hex7c0/startline","commit_stats":null,"previous_names":[],"tags_count":23,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hex7c0%2Fstartline","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hex7c0%2Fstartline/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hex7c0%2Fstartline/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hex7c0%2Fstartline/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hex7c0","download_url":"https://codeload.github.com/hex7c0/startline/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244918710,"owners_count":20531686,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["nodejs","startline"],"created_at":"2024-11-28T16:33:04.994Z","updated_at":"2025-10-12T18:43:43.379Z","avatar_url":"https://github.com/hex7c0.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [startline](https://github.com/hex7c0/startline)\n\n[![NPM version](https://img.shields.io/npm/v/startline.svg)](https://www.npmjs.com/package/startline)\n[![Linux Status](https://img.shields.io/travis/hex7c0/startline.svg?label=linux-osx)](https://travis-ci.org/hex7c0/startline)\n[![Dependency Status](https://img.shields.io/david/hex7c0/startline.svg)](https://david-dm.org/hex7c0/startline)\n[![Coveralls](https://img.shields.io/coveralls/hex7c0/startline.svg)](https://coveralls.io/r/hex7c0/startline)\n\nStream readline with starting and ending point for [nodejs](http://nodejs.org/).\nYou can even encode a file with [rc4](https://github.com/hex7c0/arc4) cipher, or [autokey](https://github.com/hex7c0/autokey).\n\n## Installation\n\nInstall through NPM\n\n```bash\nnpm install startline\n```\nor\n```bash\ngit clone git://github.com/hex7c0/startline.git\n```\n\n## API\n\ninside nodejs project\n```js\nvar readline = startline({\n  file: 'lorem.txt'\n});\n\nreadline.on('line',function(line) {\n\n  console.log(line);\n});\n```\n\n### Methods\n\nget head of string (bytes red)\n```js\nreadline.head\n```\n\nget tail of string\n```js\nreadline.tail\n```\n\nrestart reading (building a new Class)\n```js\nreadline.read(start, end)\n```\n\n### startline(options)\n\n#### options\n\n - `file` - **String** Path of file *(required)*\n - `arc4` - **String** Password for reading a encrypted file with [rc4](https://github.com/hex7c0/arc4) *(default \"disabled\")*\n - `autokey` - **String** Password for reading a encrypted file with [autokey](https://github.com/hex7c0/autokey) *(default \"disabled\")*\n - `encoding` - **utf8 | ascii | base64 | null** File encoding *(default \"null\")*\n - `mode` - **String** File permission *(default \"444\")*\n - `start` - **Integer** Starting bytes *(default \"starting file\")*\n - `end` - **Integer** Ending bytes *(default \"entire file\")*\n - `autoClose` - **Boolean** If file descriptor will be closed automatically *(default \"true\")*\n - `lodash` - **Boolean** Use lodash library with encrypted file *(default \"disabled\")*\n\nrelated to http://nodejs.org/api/fs.html#fs_fs_createreadstream_path_options\n\n## Examples\n\nTake a look at my [examples](examples)\n\n### [License GPLv3](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhex7c0%2Fstartline","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhex7c0%2Fstartline","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhex7c0%2Fstartline/lists"}