{"id":15688198,"url":"https://github.com/cdrani/xkcli","last_synced_at":"2026-02-10T04:34:36.008Z","repository":{"id":40790674,"uuid":"111248269","full_name":"cdrani/xkcli","owner":"cdrani","description":"terminal based xkcd comic viewer","archived":false,"fork":false,"pushed_at":"2022-12-06T17:33:36.000Z","size":286,"stargazers_count":2,"open_issues_count":8,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-16T04:17:02.690Z","etag":null,"topics":["cli","comic","npm-package","terminal-based","xkcd","xkcli"],"latest_commit_sha":null,"homepage":"https://npmjs.org/package/xkcli","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/cdrani.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}},"created_at":"2017-11-18T23:31:59.000Z","updated_at":"2022-02-24T16:23:31.000Z","dependencies_parsed_at":"2023-01-23T11:15:30.609Z","dependency_job_id":null,"html_url":"https://github.com/cdrani/xkcli","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdrani%2Fxkcli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdrani%2Fxkcli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdrani%2Fxkcli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdrani%2Fxkcli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cdrani","download_url":"https://codeload.github.com/cdrani/xkcli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247595382,"owners_count":20963943,"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":["cli","comic","npm-package","terminal-based","xkcd","xkcli"],"created_at":"2024-10-03T17:56:11.832Z","updated_at":"2026-02-10T04:34:35.962Z","avatar_url":"https://github.com/cdrani.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# xkcli\n\nSimple terminal based xkcd comic viewer. CLI will display the title, alt text, and image of a comic.\n\n## Usage\n\nInstallation: `npm i -g xkcli` or `yarn global add xkcli`\n\nNOTE: The first command run should be `xk c`. This command not only fetches the latest comic, but saves the comic number as well. Other options, such as `xk s \u003cvalue\u003e` and `xk r` are reliant on the latest comic number (see descriptions below).\n\n```bash\nUsage: xk [commands] [options]\n\nOptions:\n  -v, --version               output the version number\n  -h, --help                  output usage information\n\nCommands:\n  c                           display the latest comic\n  p                           display the previous comic based on the present comic\n  n                           display the next comic based on the present comic\n  s \u003cvalue\u003e                   display a specific comic ranging from the first to latest\n  r                           display random comic ranging from the first to latest\n  o [options] \u003cchalkOptions\u003e  configure chalk options to change color of output text \n  d,                          display filepath to data storage location\n```\n\n\n\n## Comic\n\nThese subcommands allows for the fetching and displaying the comics. \n\n\n__Examples:__\n\n* current, next, previous, and random subcommands have similar invocations:\n\n  ```bash\n  xk c\n  xk n\n  xk p\n  xk r\n  ```\n\n* specific comic\n\n  ```bash\n  xk s 123\n  ```\n\n\n\n## Style\n\nThis subcommand allows for the stylistic manipulation of the title and alt text. These texts can be stylized using the available [**chalk**](https://github.com/chalk/chalk#styles) options.\n\n\n__Examples:__\n\n* style the title text (text above image) with __title__ option (`-t` or `--title`)\n\n  ```bash\n  xk o -t bold.whiteBright.bgYellowBright\n  ```\n\n* style the alt text (text below image) with the __alt__ option (`-a` or `--alt`)\n\n  ```bash\n  xk o -a bold.whiteBright.bgYellowBright\n  ```\n\n* style both texts at once with the __both__ option (`-b` or `--both`)\n\n  ```bash\n  xk o -b bold.whiteBright.bgYellowBright,italic.greenBright.bgWhite\n  ```\n\n* locate data store location\n\n  ```\n  xk d\n  ```\n\nThe value before the comma, `bold.whiteBright.bgBlackBright`, is applied to the title text, and value following the comma, `italic.yellowBright`, is applied to the alt text.\n\n\n## Contributions\nContributions are welcome. \n\n\n## References\n[xkcd.com](https://xkcd.com/) | [xkcd api](https://xkcd.com/json.html)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcdrani%2Fxkcli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcdrani%2Fxkcli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcdrani%2Fxkcli/lists"}