{"id":34995251,"url":"https://github.com/harmon25/meteor-josh-js","last_synced_at":"2026-05-24T05:35:11.907Z","repository":{"id":78978146,"uuid":"42250918","full_name":"harmon25/meteor-josh-js","owner":"harmon25","description":"Josh.js (Java Online-Shell) Meteor Package","archived":false,"fork":false,"pushed_at":"2015-09-13T17:42:36.000Z","size":172,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-28T15:00:35.454Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/harmon25.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":"2015-09-10T14:50:23.000Z","updated_at":"2015-09-10T14:52:14.000Z","dependencies_parsed_at":"2023-03-03T22:30:29.406Z","dependency_job_id":null,"html_url":"https://github.com/harmon25/meteor-josh-js","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/harmon25/meteor-josh-js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harmon25%2Fmeteor-josh-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harmon25%2Fmeteor-josh-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harmon25%2Fmeteor-josh-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harmon25%2Fmeteor-josh-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/harmon25","download_url":"https://codeload.github.com/harmon25/meteor-josh-js/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harmon25%2Fmeteor-josh-js/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33423284,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-23T22:14:44.296Z","status":"online","status_checked_at":"2026-05-24T02:00:06.296Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-12-27T02:03:00.072Z","updated_at":"2026-05-24T05:35:11.892Z","avatar_url":"https://github.com/harmon25.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# meteor-josh-js\n[Josh.js](https://sdether.github.io/josh.js/) (Java Online-Shell) Meteor Package\n* Many thanks to [sdether](https://github.com/sdether/josh.js) for creating josh.js :)\n\n# Usage\n* Provides Josh object to client globablly\n\n## Blaze Template\n### Encapsulate Josh within a blaze template \n```html\n\u003ctemplate name=\"JoshTemplate\"\u003e\n\u003c!--atts template helper needs to be created --\u003e\n\t\u003cdiv id=\"{{atts.panelid}}\" class=\"shell-panel\" \u003e\n\t\t\u003cdiv id=\"{{atts.viewid}}\" class=\"shell-view\"\u003e\n\t\t\u003c/div\u003e\n\t\u003c/div\u003e\n\u003c/template\u003e\n```\n### Initialize Josh \n```javascript\nTemplate.JoshTemplate.onCreated(function(){\n  var history = Josh.History();\n  var killring = new Josh.KillRing();\n  var readline = new Josh.ReadLine({history: history, killring: killring });\n  var jShellConfig = {readline: readline,\n                  history: history,\n                  shell_view_id: this.data.viewid,\n                  shell_panel_id: this.data.panelid,\n                  prompt: this.data.prompt\n                  }\n   jShell = new Josh.Shell(jShellConfig);\n   \n   // Set commandHandlers \u0026 optionally configure pathhandler(s)\n   ...\n   ...\n\n});\n\n```\n\n## Create blaze attribute helper \n```javascript\nTemplate.JoshTemplate.helpers({\n  atts: function JoshTplAtts() {\n    var val, Attributes = {}, context = this;\n    for (var prop in context) {\n      val = context[prop];\n          if (!_.isArray(val) \u0026\u0026 !_.isObject(val)) {\n             Attributes[prop] = val;\n          }\n        }\n      return Attributes;\n    }\n});\n```\n\n### Activate josh\n```javascript\nTemplate.JoshTemplate.onRendered(function(){\n  jShell.activate()\n});\n\n```\n\n### Use blaze template anywhere\n```html\n{{\u003e JoshTemplate viewid=\"shell-view\" panelid=\"shell-panel\" prompt=\"jsh$\"}}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharmon25%2Fmeteor-josh-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fharmon25%2Fmeteor-josh-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharmon25%2Fmeteor-josh-js/lists"}