{"id":13451924,"url":"https://github.com/jamiebuilds/spectacle-code-slide","last_synced_at":"2025-05-15T03:03:09.816Z","repository":{"id":39886335,"uuid":"54802321","full_name":"jamiebuilds/spectacle-code-slide","owner":"jamiebuilds","description":":metal: Present code with style","archived":false,"fork":false,"pushed_at":"2018-11-16T16:42:17.000Z","size":8456,"stargazers_count":4160,"open_issues_count":17,"forks_count":166,"subscribers_count":50,"default_branch":"master","last_synced_at":"2025-05-15T03:03:01.535Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://jamiebuilds.github.io/spectacle-code-slide/","language":"JavaScript","has_issues":false,"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/jamiebuilds.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":"2016-03-26T22:26:57.000Z","updated_at":"2025-04-30T02:32:15.000Z","dependencies_parsed_at":"2022-09-03T14:52:33.421Z","dependency_job_id":null,"html_url":"https://github.com/jamiebuilds/spectacle-code-slide","commit_stats":null,"previous_names":["thejameskyle/spectacle-code-slide"],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamiebuilds%2Fspectacle-code-slide","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamiebuilds%2Fspectacle-code-slide/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamiebuilds%2Fspectacle-code-slide/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamiebuilds%2Fspectacle-code-slide/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jamiebuilds","download_url":"https://codeload.github.com/jamiebuilds/spectacle-code-slide/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254264744,"owners_count":22041792,"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-07-31T07:01:07.075Z","updated_at":"2025-05-15T03:03:09.751Z","avatar_url":"https://github.com/jamiebuilds.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# [spectacle](http://stack.formidable.com/spectacle)-code-slide\n\nPresent code with style using [spectacle](https://github.com/FormidableLabs/spectacle).\n\n\u003cimg src=\"demo.gif\" width=\"400\"/\u003e\n\n\u003e _Dude, you just changed the code presentation game_ – [@kenwheeler](https://github.com/kenwheeler)\n\n## Install\n\n```\n$ npm install --save spectacle\n$ npm install --save spectacle-code-slide\n```\n\n## Usage\n\n```js\nimport React from 'react';\nimport { Spectacle, Deck } from 'spectacle';\nimport CodeSlide from 'spectacle-code-slide';\nimport shiaLabeoufMagicGif from \"./shiaLabeoufMagic.gif\"\nimport preloader from \"spectacle/lib/utils/preloader\";\n\npreloader({\n  shiaLabeoufMagicGif\n});\n\nexport default class Presentation extends React.Component {\n  render() {\n    return (\n      \u003cSpectacle theme={theme}\u003e\n        \u003cDeck transition={[]} transitionDuration={0} progress=\"bar\"\u003e\n          // ...\n          \u003cCodeSlide\n            transition={[]}\n            lang=\"js\"\n            code={require(\"raw-loader!../assets/code.example\")}\n            ranges={[\n              { loc: [0, 270], title: \"Walking through some code\" },\n              { loc: [0, 1], title: \"The Beginning\" },\n              { loc: [1, 2] },\n              { loc: [1, 2], note: \"Heres a note!\" },\n              { loc: [2, 3] },\n              { loc: [4, 7], image: shiaLabeoufMagicGif },\n              { loc: [8, 10] },\n              // ...\n            ]}/\u003e\n          // ...\n        \u003c/Deck\u003e\n      \u003c/Spectacle\u003e\n    );\n  }\n}\n```\n\n## Syntax Highlighting\n\nProvided by [PrismJS](https://github.com/PrismJS/prism). See http://prismjs.com/ for docs.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamiebuilds%2Fspectacle-code-slide","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjamiebuilds%2Fspectacle-code-slide","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamiebuilds%2Fspectacle-code-slide/lists"}