{"id":19304103,"url":"https://github.com/foolishchow/electron-nokogiri","last_synced_at":"2025-06-25T06:03:20.914Z","repository":{"id":57221783,"uuid":"100084616","full_name":"foolishchow/electron-nokogiri","owner":"foolishchow","description":"light weight fetch and websocket defined by `electron ipcRender`","archived":false,"fork":false,"pushed_at":"2017-09-06T10:42:04.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-31T00:48:50.561Z","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":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/foolishchow.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":"2017-08-12T02:47:39.000Z","updated_at":"2017-08-12T02:48:46.000Z","dependencies_parsed_at":"2022-08-29T04:10:10.145Z","dependency_job_id":null,"html_url":"https://github.com/foolishchow/electron-nokogiri","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/foolishchow/electron-nokogiri","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foolishchow%2Felectron-nokogiri","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foolishchow%2Felectron-nokogiri/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foolishchow%2Felectron-nokogiri/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foolishchow%2Felectron-nokogiri/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/foolishchow","download_url":"https://codeload.github.com/foolishchow/electron-nokogiri/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foolishchow%2Felectron-nokogiri/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261816053,"owners_count":23213840,"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-09T23:28:42.839Z","updated_at":"2025-06-25T06:03:20.895Z","avatar_url":"https://github.com/foolishchow.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# electron-nokogiri\n\n- in main \n\n```javascript\nconst nokogiri = require(\"electron-nokogiri\");\n\nnokogiri.use('terminal/:pid', (next, params,param, event) =\u003e {\n    // params =\u003e your params\n    // param {pid:''}\n    // event  =\u003e hook of  ipcMain event\n    // next  callback \n    //after done your things \n    next(result)\n});\n    \nnokogiri.sockets('terminals/:pid',({socket,params}) =\u003e {\n    \n    socket.send('hello electron');\n\n    socket.on('message', function(msg) {\n       \n    });\n\n    socket.on('close', function() {\n        \n    });\n})\n```\n\n- in render\n```javascript\nconst {fetcher,webSocket} = require(\"electron-nokogiri/lib/web\");\n\nfetcher('terminal/1111',params).then((data)=\u003e{\n    console.info(data)\n});\n\n\nsocket = new webSocket('terminals/11111');\nsocket.on('open',(data)=\u003e{\n    \n})\n//...\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffoolishchow%2Felectron-nokogiri","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffoolishchow%2Felectron-nokogiri","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffoolishchow%2Felectron-nokogiri/lists"}