{"id":15552242,"url":"https://github.com/bahmutov/center-code","last_synced_at":"2025-09-26T12:31:14.526Z","repository":{"id":57195891,"uuid":"42518379","full_name":"bahmutov/center-code","owner":"bahmutov","description":"Shows the file's source centered in the terminal","archived":false,"fork":false,"pushed_at":"2016-04-11T15:04:46.000Z","size":371,"stargazers_count":37,"open_issues_count":5,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-27T20:30:54.177Z","etag":null,"topics":["cli","color","javascript","node","term","terminal"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/bahmutov.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}},"created_at":"2015-09-15T12:38:15.000Z","updated_at":"2024-08-12T10:52:00.000Z","dependencies_parsed_at":"2022-09-16T12:12:42.343Z","dependency_job_id":null,"html_url":"https://github.com/bahmutov/center-code","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bahmutov%2Fcenter-code","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bahmutov%2Fcenter-code/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bahmutov%2Fcenter-code/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bahmutov%2Fcenter-code/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bahmutov","download_url":"https://codeload.github.com/bahmutov/center-code/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234309713,"owners_count":18811949,"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","color","javascript","node","term","terminal"],"created_at":"2024-10-02T14:13:21.490Z","updated_at":"2025-09-26T12:31:14.109Z","avatar_url":"https://github.com/bahmutov.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# center-code\n\n\u003e Shows the file's source centered in the terminal\n\n    npm install -g center-code\n\nFor any file\n\n    center \u003cfilename\u003e\n    // or read from STDIN\n    cat \u003cfilename\u003e | center\n\nThe file's contents will be centered in the terminal, which is great for demos and live coding.\n\n![center-code](images/center-code.png)\n\nJavaScript `.js`, JSON `.json` and Markdown files `.md` will be syntax highlighted.\nThe input read from STDIN is not syntax highlighted.\n\n[![center-code-icon] [center-code-icon]][center-code-icon]\n\n[![Build status][center-code-ci-image] ][center-code-ci-url]\n[![dependencies][center-code-dependencies-image] ][center-code-dependencies-url]\n[![devdependencies][center-code-devdependencies-image] ][center-code-devdependencies-url]\n[![semantic-release][semantic-image] ][semantic-url]\n\n### Small print\n\nAuthor: Gleb Bahmutov \u0026copy; 2015\n\n* [@bahmutov](https://twitter.com/bahmutov)\n* [glebbahmutov.com](http://glebbahmutov.com)\n* [blog](http://glebbahmutov.com/blog/)\n\nLicense: MIT - do anything with the code, but don't blame me if it does not work.\n\nSpread the word: tweet, star on github, etc.\n\nSupport: if you find any problems with this module, email / tweet /\n[open issue](https://github.com/bahmutov/center-code/issues) on Github\n\n## MIT License\n\nCopyright (c) 2015 Gleb Bahmutov\n\nPermission is hereby granted, free of charge, to any person\nobtaining a copy of this software and associated documentation\nfiles (the \"Software\"), to deal in the Software without\nrestriction, including without limitation the rights to use,\ncopy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the\nSoftware is furnished to do so, subject to the following\nconditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES\nOF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT\nHOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\nWHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\nFROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\nOTHER DEALINGS IN THE SOFTWARE.\n\n[center-code-icon]: https://nodei.co/npm/center-code.png?downloads=true\n[center-code-url]: https://npmjs.org/package/center-code\n[center-code-ci-image]: https://travis-ci.org/bahmutov/center-code.svg?branch=master\n[center-code-ci-url]: https://travis-ci.org/bahmutov/center-code\n[center-code-dependencies-image]: https://david-dm.org/bahmutov/center-code.svg\n[center-code-dependencies-url]: https://david-dm.org/bahmutov/center-code\n[center-code-devdependencies-image]: https://david-dm.org/bahmutov/center-code/dev-status.svg\n[center-code-devdependencies-url]: https://david-dm.org/bahmutov/center-code#info=devDependencies\n[semantic-image]: https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg\n[semantic-url]: https://github.com/semantic-release/semantic-release\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbahmutov%2Fcenter-code","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbahmutov%2Fcenter-code","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbahmutov%2Fcenter-code/lists"}