{"id":15399865,"url":"https://github.com/mcollina/bcksrv","last_synced_at":"2025-05-06T09:52:33.407Z","repository":{"id":19884559,"uuid":"23148910","full_name":"mcollina/bcksrv","owner":"mcollina","description":"Serve your commands like a pro","archived":false,"fork":false,"pushed_at":"2014-09-17T16:27:16.000Z","size":204,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-03T04:06:02.424Z","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/mcollina.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":"2014-08-20T13:07:58.000Z","updated_at":"2019-07-11T16:31:48.000Z","dependencies_parsed_at":"2022-07-27T00:46:57.502Z","dependency_job_id":null,"html_url":"https://github.com/mcollina/bcksrv","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcollina%2Fbcksrv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcollina%2Fbcksrv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcollina%2Fbcksrv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcollina%2Fbcksrv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mcollina","download_url":"https://codeload.github.com/mcollina/bcksrv/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252662479,"owners_count":21784767,"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-10-01T15:50:46.909Z","updated_at":"2025-05-06T09:52:33.391Z","avatar_url":"https://github.com/mcollina.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"bcksrv\n======\n\n\n__bcksrv__ is a tiny module to build command servers easily,\nsecurely and error-safe.\n\nThis module support the same escaping and quoting of shell commands.\nIt is implemented through the [shell-quote](http://npm.im/shell-quote) module.\n\nExample\n-------\n\n```js\nvar server = require('net').createServer()\n  , srv    = require('./')()\n\nsrv.register('echo', function(rest, stream, cb) {\n  stream.write(rest.join(' '))\n  stream.write('\\n')\n  cb()\n})\n\nsrv.register('err', function(rest, stream, cb) {\n  cb(new Error('muahha'))\n})\n\nserver.on('connection', function(conn) {\n  conn.pipe(srv.stream()).pipe(conn)\n})\n\nserver.listen(3000)\n```\n\nAcknowledgements\n----------------\n\nThis project was kindly sponsored by [nearForm](http://nearform.com).\n\n\nLicense\n-------\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcollina%2Fbcksrv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmcollina%2Fbcksrv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcollina%2Fbcksrv/lists"}