{"id":20148358,"url":"https://github.com/nwutils/nwjs-print-server","last_synced_at":"2025-04-09T19:52:05.521Z","repository":{"id":31424100,"uuid":"34987591","full_name":"nwutils/nwjs-print-server","owner":"nwutils","description":"Websocket server to interface a website with a printer","archived":false,"fork":false,"pushed_at":"2015-05-08T11:55:35.000Z","size":172,"stargazers_count":12,"open_issues_count":1,"forks_count":6,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-23T21:46:01.160Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nwutils.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-05-03T13:52:17.000Z","updated_at":"2024-12-28T15:23:28.000Z","dependencies_parsed_at":"2022-09-05T19:00:33.566Z","dependency_job_id":null,"html_url":"https://github.com/nwutils/nwjs-print-server","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/nwutils%2Fnwjs-print-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nwutils%2Fnwjs-print-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nwutils%2Fnwjs-print-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nwutils%2Fnwjs-print-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nwutils","download_url":"https://codeload.github.com/nwutils/nwjs-print-server/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248103903,"owners_count":21048244,"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-13T22:37:21.441Z","updated_at":"2025-04-09T19:52:05.498Z","avatar_url":"https://github.com/nwutils.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nwjs-print-server\n\nA simple [nw.js](https://github.com/nwjs/nw.js) application that bridges a website to a local printer (I.E. printing recipes from a web application)\n\n## Installation\nClone this repo, setup the application using `npm install`\n\n## Usages\n **server side** :\n```bash\nnpm start\n```\n\n**client side**:\n```javascript\n$(function () {\n    // Connects to localserver\n    var printServer = io('http://localhost:9001');\n    \n    // Waits for connect event\n    printServer.on('connect', function () {\n        // Launches a raw-print on the selected printer.\n        // you can select the default printer using the tooltip menu of the nw.js's tray icon\n        printServer.emit('raw-print', 'raw data');\n    });\n});\n  ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnwutils%2Fnwjs-print-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnwutils%2Fnwjs-print-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnwutils%2Fnwjs-print-server/lists"}