{"id":15853207,"url":"https://github.com/omrilotan/man","last_synced_at":"2026-04-29T18:31:43.059Z","repository":{"id":66162038,"uuid":"236589389","full_name":"omrilotan/man","owner":"omrilotan","description":"📖 Print contents of package man file in console","archived":false,"fork":false,"pushed_at":"2020-01-27T21:53:30.000Z","size":4,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-01T18:53:13.222Z","etag":null,"topics":["cli","man","manual","npm","package-json"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/omrilotan.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2020-01-27T20:37:50.000Z","updated_at":"2023-02-13T19:14:08.000Z","dependencies_parsed_at":"2023-02-21T02:16:18.860Z","dependency_job_id":null,"html_url":"https://github.com/omrilotan/man","commit_stats":{"total_commits":1,"total_committers":1,"mean_commits":1.0,"dds":0.0,"last_synced_commit":"a72584d57ee6d32097ebdd0db9756d14e62add38"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/omrilotan/man","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omrilotan%2Fman","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omrilotan%2Fman/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omrilotan%2Fman/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omrilotan%2Fman/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/omrilotan","download_url":"https://codeload.github.com/omrilotan/man/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omrilotan%2Fman/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32439140,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T18:12:22.909Z","status":"ssl_error","status_checked_at":"2026-04-29T18:11:33.322Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["cli","man","manual","npm","package-json"],"created_at":"2024-10-05T19:03:26.904Z","updated_at":"2026-04-29T18:31:43.038Z","avatar_url":"https://github.com/omrilotan.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# man\n\n## 📖 Print contents of package man file in console\n\n### CLI\n```bash\n$ npx man\n# or\n$ manfile\n# or\n$ manual\n```\n\n### Package\n```js\nconst man = require('man');\n\nconst [, , ...rest] = process.argv;\n\nif (rest.includes('--help') || rest.includes('-h')) {\n\tawait man({ exit: true });\n}\n```\n\n\u003e - Uses console.info to print\n\u003e - Module function returns the contents\n\nExample: Using Yargs parser\n```js\nconst parser = require('yargs-parser');\nconst man = require('man');\n\nconst args = parser(\n\tprocess.argv.slice(2),\n\t{\n\t\talias: {\n\t\t\thelp: [ 'h' ]\n\t\t}\n\t}\n);\n\nargs.help\n\t? man()\n\t: runApp(args)\n;\n```\n\n#### Arguments\n\n##### exit\nWhether to exit the process after finished. Defaults to `false`\n```js\nman({ exit: true })\n```\n\n##### print\nWhether to print the contents of man file. Defaults to `true`\n```js\nman({ print: false })\n```\n\n##### base\nRoot from which to look for package.json and man files. Defaults to `process.cwd()`\n```js\nman({ base: '/home/app' })\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fomrilotan%2Fman","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fomrilotan%2Fman","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fomrilotan%2Fman/lists"}