{"id":21743824,"url":"https://github.com/iambnlvn/head-js","last_synced_at":"2026-05-13T05:41:18.672Z","repository":{"id":207632165,"uuid":"719699201","full_name":"iambnlvn/head-js","owner":"iambnlvn","description":"A simple command line tool to print the first few lines of a file, inspired by the Unix head command","archived":false,"fork":false,"pushed_at":"2024-08-17T12:40:44.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-25T22:21:21.753Z","etag":null,"topics":["bun","cli","unix-command"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/iambnlvn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2023-11-16T18:04:28.000Z","updated_at":"2024-08-17T12:40:47.000Z","dependencies_parsed_at":"2025-01-25T22:16:37.867Z","dependency_job_id":"dab21e16-7d82-4529-a62f-42bfff15f3e8","html_url":"https://github.com/iambnlvn/head-js","commit_stats":null,"previous_names":["iambnlvn/head-js"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iambnlvn%2Fhead-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iambnlvn%2Fhead-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iambnlvn%2Fhead-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iambnlvn%2Fhead-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iambnlvn","download_url":"https://codeload.github.com/iambnlvn/head-js/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244722569,"owners_count":20499150,"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":["bun","cli","unix-command"],"created_at":"2024-11-26T07:09:11.825Z","updated_at":"2026-05-13T05:41:18.645Z","avatar_url":"https://github.com/iambnlvn.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Project Name\n\njs head\n\n# Description\n\nA simple command line tool to print the first few lines of a file, inspired by the Unix head command.\u003cbr\u003e\nRuntime: [Bun](https://bun.sh)\n\n# Usage\n\nInstall the dependencies with \n```bash\nbun install\n```\n\nRun \n```bash\nbun exec | ./jhead [options] [paths]\n```\noptions:\n\n-l, --lines: number of lines to print type: number default: 10\u003cbr\u003e\n-b, --bytes: number of bytes to print type: number\u003cbr\u003e\n-t, --tag: print the tag | file name type: boolean default: false\u003cbr\u003e\n-p, --paths: files path | file name type: string[]\u003cbr\u003e\n\u003cbr\u003e\nnote: if both -l and -b are specified, -l will be ignored and -b will be used as default as it is more specific\u003cbr\u003e\u003cbr\u003e\nexample: \n```\nbun exec \u0026\u0026 ./jhead -l 11 -t -p README.md\n```\n![js-headexemple](https://github.com/iambnlvn/head-js/assets/97989036/82f3360c-e6ae-47da-8581-547a1b807be7)\n\nBuilt using [type-flag](https://github.com/privatenumber/type-flag).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiambnlvn%2Fhead-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiambnlvn%2Fhead-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiambnlvn%2Fhead-js/lists"}