{"id":15659236,"url":"https://github.com/doowb/snake-cli","last_synced_at":"2025-07-16T14:41:47.340Z","repository":{"id":57364505,"uuid":"71602884","full_name":"doowb/snake-cli","owner":"doowb","description":"Experiment / demo using readline-utils to create a simple snake game in the terminal.","archived":false,"fork":false,"pushed_at":"2016-10-22T16:43:57.000Z","size":137,"stargazers_count":21,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-26T12:16:20.417Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/doowb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"contributing.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-10-21T22:54:57.000Z","updated_at":"2023-05-27T08:44:19.000Z","dependencies_parsed_at":"2022-09-13T21:11:07.321Z","dependency_job_id":null,"html_url":"https://github.com/doowb/snake-cli","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doowb%2Fsnake-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doowb%2Fsnake-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doowb%2Fsnake-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doowb%2Fsnake-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/doowb","download_url":"https://codeload.github.com/doowb/snake-cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252193709,"owners_count":21709346,"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":[],"created_at":"2024-10-03T13:15:52.502Z","updated_at":"2025-05-05T17:37:52.130Z","avatar_url":"https://github.com/doowb.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# snake-cli [![NPM version](https://img.shields.io/npm/v/snake-cli.svg?style=flat)](https://www.npmjs.com/package/snake-cli) [![NPM downloads](https://img.shields.io/npm/dm/snake-cli.svg?style=flat)](https://npmjs.org/package/snake-cli) [![Linux Build Status](https://img.shields.io/travis/doowb/snake-cli.svg?style=flat\u0026label=Travis)](https://travis-ci.org/doowb/snake-cli) [![Windows Build Status](https://img.shields.io/appveyor/ci/doowb/snake-cli.svg?style=flat\u0026label=AppVeyor)](https://ci.appveyor.com/project/doowb/snake-cli)\n\n\u003e Experiment / demo using readline-utils to create a simple snake game in the terminal.\n\n## Install\n\nInstall globally with [npm](https://www.npmjs.com/)\n\n```sh\n$ npm install --global snake-cli\n```\n\n## CLI\n\nWhen installed globally, this module adds a `snake` command that will start the demo:\n\n```sh\n$ snake\n```\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/doowb/snake-cli/master/demo.gif\"\u003e\n\u003c/p\u003e\n\n## API\n\nThis module also exports a function that may be called manually to start the demo:\n\n```js\nvar snake = require('snake-cli');\nsnake();\n```\n\nThere are currently no options or configuration. This is just an demo to play around with some [readline-utils](https://github.com/enquirer/readline-utils) features.\n\n## About\n\n### Related projects\n\n* [enquirer](https://www.npmjs.com/package/enquirer): Intuitive, plugin-based prompt system for node.js. Much faster and lighter alternative to Inquirer, with all… [more](https://github.com/enquirer/enquirer) | [homepage](https://github.com/enquirer/enquirer \"Intuitive, plugin-based prompt system for node.js. Much faster and lighter alternative to Inquirer, with all the same prompt types and more, but without the bloat.\")\n* [readline-ui](https://www.npmjs.com/package/readline-ui): Create readline interface to use in prompts. | [homepage](https://github.com/enquirer/readline-ui \"Create readline interface to use in prompts.\")\n* [readline-utils](https://www.npmjs.com/package/readline-utils): Readline utils, for moving the cursor, clearing lines, creating a readline interface, and more. | [homepage](https://github.com/enquirer/readline-utils \"Readline utils, for moving the cursor, clearing lines, creating a readline interface, and more.\")\n* [repeat-string](https://www.npmjs.com/package/repeat-string): Repeat the given string n times. Fastest implementation for repeating a string. | [homepage](https://github.com/jonschlinkert/repeat-string \"Repeat the given string n times. Fastest implementation for repeating a string.\")\n* [window-size](https://www.npmjs.com/package/window-size): Reliable way to to get the height and width of the terminal/console in a node.js… [more](https://github.com/jonschlinkert/window-size) | [homepage](https://github.com/jonschlinkert/window-size \"Reliable way to to get the height and width of the terminal/console in a node.js environment.\")\n\n### Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).\n\nPlease read the [contributing guide](contributing.md) for avice on opening issues, pull requests, and coding standards.\n\n### Building docs\n\n_(This document was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme) (a [verb](https://github.com/verbose/verb) generator), please don't edit the readme directly. Any changes to the readme must be made in [.verb.md](.verb.md).)_\n\nTo generate the readme and API documentation with [verb](https://github.com/verbose/verb):\n\n```sh\n$ npm install -g verb verb-generate-readme \u0026\u0026 verb\n```\n\n### Running tests\n\nInstall dev dependencies:\n\n```sh\n$ npm install -d \u0026\u0026 npm test\n```\n\n### Author\n\n**Brian Woodward**\n\n* [github/doowb](https://github.com/doowb)\n* [twitter/doowb](http://twitter.com/doowb)\n\n### License\n\nCopyright © 2016, [Brian Woodward](https://github.com/doowb).\nReleased under the [MIT license](LICENSE).\n\n***\n\n_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.2.0, on October 21, 2016._","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoowb%2Fsnake-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdoowb%2Fsnake-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoowb%2Fsnake-cli/lists"}