{"id":18410252,"url":"https://github.com/racklin/xulapp-starterkit-addon-nodejs","last_synced_at":"2025-08-08T15:48:54.692Z","repository":{"id":6318587,"uuid":"7553624","full_name":"racklin/xulapp-starterkit-addon-nodejs","owner":"racklin","description":"NodeJS Runtime For for XULApp StarterKit. Now you can running NodeJS Tools in XULApp StarterKit.","archived":false,"fork":false,"pushed_at":"2015-03-11T02:21:35.000Z","size":20168,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-04-09T15:28:36.526Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/racklin.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":"2013-01-11T03:45:35.000Z","updated_at":"2024-04-09T15:28:36.527Z","dependencies_parsed_at":"2022-07-25T03:24:24.088Z","dependency_job_id":null,"html_url":"https://github.com/racklin/xulapp-starterkit-addon-nodejs","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/racklin%2Fxulapp-starterkit-addon-nodejs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/racklin%2Fxulapp-starterkit-addon-nodejs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/racklin%2Fxulapp-starterkit-addon-nodejs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/racklin%2Fxulapp-starterkit-addon-nodejs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/racklin","download_url":"https://codeload.github.com/racklin/xulapp-starterkit-addon-nodejs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223277570,"owners_count":17118593,"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-11-06T03:30:16.519Z","updated_at":"2024-11-06T03:30:17.420Z","avatar_url":"https://github.com/racklin.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"NodeJS Runtime For XULApp StarterKit\n-----------------------------\nNodeJS Runtime For for XULApp StarterKit. Now you can running NodeJS Tools in XULApp StarterKit.\n\nThis Add-on Contains NodeJS v0.8.17 MacOSX(32bit/64bit) and Linux(32bit/64bit) and Windows(32bit) runtime.\n\nDownload pre-build XPI\n-----------------------------\nDownload pre-build XPI in [Download XPI](https://github.com/racklin/xulapp-starterkit-addon-nodejs/releases)\n\n\nGet started\n-----------------------------\nUsing XULApp.NodeJS.createProcess() to create a nsIProcess and initialized with node execute file.\nThen you can using 'run' for running node process in foreground , using 'runAsync' running node process in background.\n\nXULApp.NodeJS.createProcess() auto add a default observer handler, It will kill all running node process when XULApp quit.\n\nMore detail, please see [nsIProcess](https://developer.mozilla.org/en-US/docs/XPCOM_Interface_Reference/nsIProcess).\n\n\nExample\n-----------------------------\n### Running CoffeeScript compiler in block mode , wait until finish.\n```\nvar process = XULApp.NodeJS.createProcess();\n// Run the coffeescript compiler\nvar args = [\"COFFEESCRIPT_ADDON_PATH\", \"-c\", \"/tmp/test.coffee\", \"-o\", \"test.js\"];\nprocess.run(true, args, args.length);\n```\n\n### Running express web application from XULApp (Crazy idea)\n```\nvar process = XULApp.NodeJS.createProcess();\nvar args = [\"YOUR EXPRESS APP\"];\nprocess.runAsync(args, args.length);\n```\n#### express web application demo addon \nRunning express web application from XULApp demo addon is here:\n[expressjs-demo](https://github.com/racklin/xulapp-starterkit-addon-expressjs-demo)\n\n\nLicense\n-----------------------------\nNodeJS Runtime For XULApp StarterKit are licensed under the [MPL License].\nSee LICENSE for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fracklin%2Fxulapp-starterkit-addon-nodejs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fracklin%2Fxulapp-starterkit-addon-nodejs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fracklin%2Fxulapp-starterkit-addon-nodejs/lists"}