{"_id":"webrepl","_rev":"28-27176907e5c9b546afbb1601f56ecaf9","name":"webrepl","description":"Serve a repl for a node process via a web console","dist-tags":{"latest":"0.4.7"},"versions":{"0.1.0":{"name":"webrepl","version":"0.1.0","description":"Serve a repl for a node process via a web console","url":"https://github.com/mmattozzi/webrepl","author":{"name":"Mike Mattozzi","email":"mike.mattozzi@gmail.com"},"main":"./webrepl","engines":{"node":">=0.4.0"},"repository":{"type":"git","url":"git://github.com/mmattozzi/webrepl.git"},"_id":"webrepl@0.1.0","_engineSupported":true,"_npmVersion":"0.2.18","_nodeVersion":"v0.4.0","directories":{},"files":[""],"_defaultsLoaded":true,"dist":{"shasum":"cf1d14d62f0ce57b135848536f731f62b1d2d770","tarball":"https://registry.npmjs.org/webrepl/-/webrepl-0.1.0.tgz","integrity":"sha512-1u6Opvm7KHaJQ7VY/3rCFcGcSMfo4aAJHdESC6G80P1GVxeOoJ/WHj2ITOhopzuy+r1ihZqvAxAs2HqBhPvM6A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAoUToagQpZRoaIry6fhRh+BccnuN+Y9phClqqoOq7qpAiEA3UtustbTpeHo5WE8a0SxRZIejELtwfZKKBHI40F+z9s="}]}},"0.2.0":{"name":"webrepl","version":"0.2.0","description":"Serve a repl for a node process via a web console","url":"https://github.com/mmattozzi/webrepl","author":{"name":"Mike Mattozzi","email":"mike.mattozzi@gmail.com"},"main":"./webrepl","engines":{"node":">=0.4.0"},"repository":{"type":"git","url":"git://github.com/mmattozzi/webrepl.git"},"_id":"webrepl@0.2.0","_engineSupported":true,"_npmVersion":"0.2.18","_nodeVersion":"v0.4.0","directories":{"doc":"./doc"},"files":[""],"_defaultsLoaded":true,"dist":{"shasum":"bf4e7dff5cae35c930bb17ec63ab8f9d16c4baad","tarball":"https://registry.npmjs.org/webrepl/-/webrepl-0.2.0.tgz","integrity":"sha512-rL1Af+TtbpVO4aOoHnoI9m5hJiyyi5f8LKjBK+82WGqwRdyluK/miufObuteN7+mdQ7pBKjGzHCF+rkfDQizyg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCoHZYmzxqRaFbwnEZi/qlXJGKOTKlp1cBgC3o+s0XocgIhAJJ5NrorB9E7Vdt7DxXHf2DQ/6XGLvZZBq+hesQX9TaZ"}]}},"0.3.0":{"name":"webrepl","version":"0.3.0","description":"Serve a repl for a node process via a web console","url":"https://github.com/mmattozzi/webrepl","author":{"name":"Mike Mattozzi","email":"mike.mattozzi@gmail.com"},"main":"./webrepl","engines":{"node":">=0.4.0"},"repository":{"type":"git","url":"git://github.com/mmattozzi/webrepl.git"},"_id":"webrepl@0.3.0","_engineSupported":true,"_npmVersion":"0.2.18","_nodeVersion":"v0.4.0","directories":{"doc":"./doc"},"files":[""],"_defaultsLoaded":true,"dist":{"shasum":"0e323e7627c04ab631cfb11dc0784183cd3d888e","tarball":"https://registry.npmjs.org/webrepl/-/webrepl-0.3.0.tgz","integrity":"sha512-znqA28tbz3R0XJJpuDkDvrdq076noJuYKyXjXqNJELSllG2w3Wt0dxAYqaftF92nMDQKYmhJuXwpbF64h0Yrnw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDyIORteZIExbc3ZjROXv/VbxOhSWBvmz39fKpeAD+1rAiEA9RSzULUCjTXPPe4DTOJdwNeTFo/eJBwgRhbMiMhqF50="}]}},"0.3.1":{"name":"webrepl","version":"0.3.1","description":"Serve a repl for a node process via a web console","url":"https://github.com/mmattozzi/webrepl","author":{"name":"Mike Mattozzi","email":"mike.mattozzi@gmail.com"},"main":"./webrepl","engines":{"node":">=0.4.0"},"repository":{"type":"git","url":"git://github.com/mmattozzi/webrepl.git"},"_id":"webrepl@0.3.1","_engineSupported":true,"_npmVersion":"0.2.18","_nodeVersion":"v0.4.0","directories":{"doc":"./doc"},"files":[""],"_defaultsLoaded":true,"dist":{"shasum":"5b2f6e8184dc10a1877f88531591c7a6d2ff8071","tarball":"https://registry.npmjs.org/webrepl/-/webrepl-0.3.1.tgz","integrity":"sha512-kT6NwmSSLhlaWUeTB/oba9JWY+qYk/b1gW9yRBSjEn76tDm/8jw+qIaQtT5WYywZrfo0+Ll/NM7rw9jH+WLfxw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCaChBJmODC8U0CeJZOc71RqHkDTAUIf4Z3sQKbrlIb8wIhAKnhpGcp248Uu3uMBGwOMF2ohXgbMIcCpBK6qez7tFYN"}]}},"0.4.0":{"name":"webrepl","version":"0.4.0","description":"Serve a repl for a node process via a web console","url":"https://github.com/mmattozzi/webrepl","author":{"name":"Mike Mattozzi","email":"mike.mattozzi@gmail.com"},"main":"./webrepl","engines":{"node":">=0.4.0"},"repository":{"type":"git","url":"git://github.com/mmattozzi/webrepl.git"},"dependencies":{"http-digest":">=0.1.0"},"_id":"webrepl@0.4.0","_engineSupported":true,"_npmVersion":"0.2.18","_nodeVersion":"v0.4.0","directories":{"doc":"./doc"},"files":[""],"_defaultsLoaded":true,"dist":{"shasum":"eafb1d34fe8d7864a1da591fcc9b9056fd3c6f96","tarball":"https://registry.npmjs.org/webrepl/-/webrepl-0.4.0.tgz","integrity":"sha512-zB2DP4s6+U6HyZehZXFwKA5srl8Ys1E4M8rCrNSeAItpNo8EuOhCXROyAuPmz04iF+JVjZE6xcibgwPMokpPfQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDhciYcP5WKT8THsLRF6d51MHOhd3/cg/D8JEhSq5rL4wIgB36DJFu4ATrCQtgCbyk/Ps0d6IepCafUTZ0ChAnF1C0="}]}},"0.4.1":{"name":"webrepl","version":"0.4.1","description":"Serve a repl for a node process via a web console","url":"https://github.com/mmattozzi/webrepl","author":{"name":"Mike Mattozzi","email":"mike.mattozzi@gmail.com"},"main":"./webrepl.js","engines":{"node":">=0.4.0"},"repository":{"type":"git","url":"git://github.com/mmattozzi/webrepl.git"},"dependencies":{"http-digest":">=0.1.0"},"_id":"webrepl@0.4.1","_engineSupported":true,"_npmVersion":"0.3.18","_nodeVersion":"v0.4.3","directories":{"doc":"./doc"},"files":[""],"_defaultsLoaded":true,"dist":{"shasum":"27a96aa612b1f92f9336f6ff8282c41e4e9c5507","tarball":"https://registry.npmjs.org/webrepl/-/webrepl-0.4.1.tgz","integrity":"sha512-qr0KeWCPefsgKX8zWmWRoweAGaA/xvJsNWE6JZmyr9Xr24vMNL6bqoxUbwq3OsKrrCaOxtussVC2UQj8LJeA6g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDGzHegNkm0JH0vVHwryV/91ZQCsbzGHiq6dja6G30uxQIgXF9L6FLW7LuU4MD27GUFpVWSm1Mg33TA5GXVB7KlTeQ="}]}},"0.4.2":{"name":"webrepl","version":"0.4.2","description":"Serve a repl for a node process via a web console","url":"https://github.com/mmattozzi/webrepl","author":{"name":"Mike Mattozzi","email":"mike.mattozzi@gmail.com"},"main":"./webrepl.js","engines":{"node":">=0.4.0"},"repository":{"type":"git","url":"git://github.com/mmattozzi/webrepl.git"},"dependencies":{"http-digest":">=0.1.0"},"keywords":["repl","console","management"],"_id":"webrepl@0.4.2","_engineSupported":true,"_npmVersion":"0.3.18","_nodeVersion":"v0.4.7","directories":{"doc":"./doc"},"files":[""],"_defaultsLoaded":true,"dist":{"shasum":"cc4ff91e31189b8b6766b00df8aee573b28ea193","tarball":"https://registry.npmjs.org/webrepl/-/webrepl-0.4.2.tgz","integrity":"sha512-PeHiDbU4Ub/3X/zDISjLTEFx93ETbg/3kS9tGHLWqkdnNn73V+a9CVACtZxkshN9dQpj23wu4ZR2mu4RULho/g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCx6nYEN0X2ERbfdKy4J1/fhj2r3krf3lHMsJiBXDiu9wIgB7eqC0bWPxwmIeZJ62d9uipXHWQkOsMEVF15omt3wiY="}]}},"0.4.3":{"name":"webrepl","version":"0.4.3","description":"Serve a repl for a node process via a web console","url":"https://github.com/mmattozzi/webrepl","author":{"name":"Mike Mattozzi","email":"mike.mattozzi@gmail.com"},"main":"./webrepl.js","engines":{"node":">=0.4.0"},"repository":{"type":"git","url":"git://github.com/mmattozzi/webrepl.git"},"dependencies":{"http-digest":">=0.1.0"},"keywords":["repl","console","management"],"_id":"webrepl@0.4.3","_engineSupported":true,"_npmVersion":"0.3.18","_nodeVersion":"v0.4.7","directories":{"doc":"./doc"},"files":[""],"_defaultsLoaded":true,"dist":{"shasum":"0ac4e3ac5c16bfda1374f1269d1171b1f5f58f68","tarball":"https://registry.npmjs.org/webrepl/-/webrepl-0.4.3.tgz","integrity":"sha512-xVsEQ9NgEuts8tg7Hxp0ziLDnbOc/gFg58oEBTEkeTD+RnvJK41QNY+PAigquUpQptzAp7m7UPzDOT120ZNdag==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHUaZJlwcVVY6u4xqzbVORO4e8dg7RW68CztiHXi7WH8AiBF+UUNCOUYWajCPD6O0kwmo257KlzmtXIdq4UqvmrjxA=="}]}},"0.4.4":{"name":"webrepl","version":"0.4.4","description":"Serve a repl for a node process via a web console","url":"https://github.com/mmattozzi/webrepl","author":{"name":"Mike Mattozzi","email":"mike.mattozzi@gmail.com"},"main":"./webrepl.js","engines":{"node":">=0.4.0"},"repository":{"type":"git","url":"git://github.com/mmattozzi/webrepl.git"},"dependencies":{"http-digest":">=0.1.0"},"keywords":["repl","console","management"],"_id":"webrepl@0.4.4","_engineSupported":true,"_npmVersion":"0.3.18","_nodeVersion":"v0.4.7","directories":{"doc":"./doc"},"files":[""],"_defaultsLoaded":true,"dist":{"shasum":"00a99be9bcffb7b113d59ed0a2d7e3a16589b6bb","tarball":"https://registry.npmjs.org/webrepl/-/webrepl-0.4.4.tgz","integrity":"sha512-RUSqOVcXeFGP4NeZE2OovVgS1R22G4CzdUSinZtVTmjkIRW9tllhJtNCEelVe5CGi7UyTlPwdsjbeAlqYPWUGg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDLVHBrOGkyXl2SjG8+Qrd7Nbjist0UxSCtXHI0+JsxxwIhAIbq7bRwQkhrVgKXw3dEizA7j26vPlpmLZyvwypuM1Au"}]}},"0.4.5":{"name":"webrepl","version":"0.4.5","description":"Serve a repl for a node process via a web console","url":"https://github.com/mmattozzi/webrepl","author":{"name":"Mike Mattozzi","email":"mike.mattozzi@gmail.com"},"main":"./webrepl.js","engines":{"node":">=0.4.0"},"repository":{"type":"git","url":"git://github.com/mmattozzi/webrepl.git"},"dependencies":{"http-digest":">=0.1.0"},"keywords":["repl","console","management"],"_id":"webrepl@0.4.5","_engineSupported":true,"_npmVersion":"0.3.18","_nodeVersion":"v0.4.7","directories":{"doc":"./doc"},"files":[""],"_defaultsLoaded":true,"dist":{"shasum":"3b78c70e0fac9803868bf7a9189f0e8b63ecba5c","tarball":"https://registry.npmjs.org/webrepl/-/webrepl-0.4.5.tgz","integrity":"sha512-ykDLuDRDy67o8Y2WPmBSPHFlS74hbJJNNKaGSqRKDhNpG75ybhddeTrlMT1Dpe7xfOvb+urQ3Q2BYfe7BFwSWw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDv1RD77R7GWV43OdQj4TLK5K6sQgK8FThLNXYDJ9C7yQIhAO9igd48/lRtyRzFawiBIu9HGokEqyFMMwmywuG8p5+w"}]}},"0.4.6":{"name":"webrepl","version":"0.4.6","description":"Serve a repl for a node process via a web console","url":"https://github.com/mmattozzi/webrepl","author":{"name":"Mike Mattozzi","email":"mike.mattozzi@gmail.com"},"main":"./webrepl.js","engines":{"node":">=0.4.0"},"repository":{"type":"git","url":"git://github.com/mmattozzi/webrepl.git"},"dependencies":{"http-digest":">=0.1.0"},"keywords":["repl","console","management"],"_npmUser":{"name":"mmattozzi","email":"mike.mattozzi@gmail.com"},"_id":"webrepl@0.4.6","devDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.0-alpha-6","_nodeVersion":"v0.6.5","_defaultsLoaded":true,"dist":{"shasum":"3134799a504166a62c20a4ca23a1f7ab77a56a8d","tarball":"https://registry.npmjs.org/webrepl/-/webrepl-0.4.6.tgz","integrity":"sha512-E+fSWxphbfpTZ/DKA8yM62Niajnl/TLaiR3dZzqzhH9hlo5R6p/wQx9vlhGxeFb8d6z5bzFvbExqpfsV+M9gBg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICILImsm2vBMmtWSEWToT27e4kxPrrk2CJsLkXm00fe2AiB8sQppusK044mPV025fglubWXMrpCE+57qES6pD5vzhg=="}]},"maintainers":[{"name":"mmattozzi","email":"mike.mattozzi@gmail.com"}]},"0.4.7":{"name":"webrepl","version":"0.4.7","description":"Serve a repl for a node process via a web console","url":"https://github.com/mmattozzi/webrepl","author":{"name":"Mike Mattozzi","email":"mike.mattozzi@gmail.com"},"main":"./webrepl.js","engines":{"node":">=0.8.0"},"repository":{"type":"git","url":"git://github.com/mmattozzi/webrepl.git"},"dependencies":{"http-digest":">=0.1.0"},"keywords":["repl","console","management"],"readme":"About\n=================\nIf you're familiar with [node.js](http://nodejs.org) then you're familiar with the provided REPL. You can embed a REPL in your programs and make it available via tcp or unix sockets so that you can connect to a long running node.js program and play around with it on a command line. Webrepl takes the same idea but makes the repl available via an interactive web page so that you can have all the fun of using a repl right in your web browser. \n\n* Node.js repl for your process in your browser\n* Tab completion is included! \n* Command history via up and down arrows\n* Webrepl also makes the properties in your context accessible via restful http calls. \n* UI inspired by http://search.npmjs.org/\n* Optional http authentication\n\n![See a Screenshot](https://github.com/mmattozzi/webrepl/raw/master/doc/webrepl.png)\n\nRequires: Node v0.4.0 or higher, but may work on older versions. I haven't tested this yet.\n\nInstallation\n=================\n\n    npm install webrepl\n    \nOr just dump all the files into your project's directory. Node module [http-digest](https://github.com/thedjinn/node-http-digest) \nrequired for auth. This will be fetched by npm, but you will have to fetch it yourself if you're not using npm and want auth.\n\nUsage\n=================\n\n    var webrepl = require('webrepl');\n    webrepl.start(8080);\n\nThen point your browser to http://localhost:8080 and have fun!\n\nYou can provide context variables just like the regular repl:\n    \n    var webrepl = require('webrepl');\n    var foo = { 'bar': 1, 'day': new Date() };\n    webrepl.start(8080).context.foo = foo;\n\nHTTP Authentication can be set (uses http digest authentication):\n\n    var webrepl = require('webrepl');\n    var options = { 'username': 'user', 'password': 'password' };\n    webrepl.start(8080, options);\n    \nAvailable options:\n\n    var options = {\n       'username': 'username for http authentication, password must also be set',\n       'password': 'password for http authentication, username must also be set',\n       'hostname': 'hostname to listen on. ex: localhost, 192.168.0.1, etc'\n    }\n    \nYou can also access context variables via HTTP, for example: \n\n    ~ mmattozzi$ curl -i \"http://localhost:8080/context/foo\"\n    HTTP/1.1 200 OK\n    Content-Type: application/json\n    Connection: keep-alive\n    Transfer-Encoding: chunked\n\n    {\"bar\":1,\"two\":\"dos\",\"today\":\"2011-02-15T05:33:57.672Z\"}\n    \n    ~ mmattozzi$ curl -i \"http://localhost:8080/context/process.pid\"\n    HTTP/1.1 200 OK\n    Content-Type: application/json\n    Connection: keep-alive\n    Transfer-Encoding: chunked\n\n    33814\n    \nUsage Note\n=================\n\nIf you try to start webrepl from the normal, command line repl without assigning it to a variable, you'll see \nsome exceptions. This isn't a problem with starting the server, it's only a problem with parsing the REPLServer \nobject that gets returned.\n\nHere we see an exception because node's object inspection can't output the standard REPLServer object that gets returned:\n\n    > require('webrepl').start(8080);\n    TypeError: Cannot convert object to primitive value\n        at String.STRING_ADD_LEFT (native)\n        at isRegExp (util.js:266:14)\n        at format (util.js:163:11)\n        at util.js:195:19\n        at Array.map (native)\n        at format (util.js:172:23)\n        at util.js:195:19\n        at Array.map (native)\n        at format (util.js:172:23)\n        at util.js:195:19\n    >\n    \nHere there's no exception because the object is assigned to a variable:\n\n    > var wr = require('webrepl').start(8080);\n    >\n    \n*In both cases, webrepl started successfully and is running!*\n\nSecurity Note\n=================\n\nWebrepl can be used to do all sorts of harm to the host system using the require keyword. Think twice, then a \nfew more times before exposing webrepl to the world. Optional auth can be used to prevent unwanted access,\nbut the connection is still insecure/unencrypted. \n\n","_id":"webrepl@0.4.7","dist":{"shasum":"4f1779eacaacde6aabf2df00f0025e4bb89f3bd5","tarball":"https://registry.npmjs.org/webrepl/-/webrepl-0.4.7.tgz","integrity":"sha512-/RByif/T+xtNNEov6IIyJ45HqruyZH+d3Z80a0by2Hm6rP9awVuvuO/RyxB9zKfRO7zSgssZo7s3c//ClA6mqg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDhgmc+O/9DuDCo3qOU35T+pBXtEo0He8wpxLzu5tFnOAiEAwgBNErEb3mBi1ZKZsYQZUUNUTV0SF5BuZjSmW8qPDg0="}]},"maintainers":[{"name":"mmattozzi","email":"mike.mattozzi@gmail.com"}]}},"maintainers":[{"name":"mmattozzi","email":"mike.mattozzi@gmail.com"}],"time":{"modified":"2022-06-29T00:20:31.970Z","created":"2011-02-15T04:34:44.386Z","0.1.0":"2011-02-15T04:34:44.508Z","0.2.0":"2011-02-16T03:20:07.216Z","0.3.0":"2011-02-19T19:18:15.215Z","0.3.1":"2011-02-19T19:38:08.199Z","0.4.0":"2011-02-26T21:04:20.086Z","0.4.1":"2011-04-26T00:27:56.431Z","0.4.2":"2011-04-29T00:06:00.557Z","0.4.3":"2011-04-29T23:50:16.499Z","0.4.4":"2011-05-03T02:28:01.228Z","0.4.5":"2011-05-05T03:59:16.537Z","0.4.6":"2011-12-06T01:27:57.343Z","0.4.7":"2012-12-17T02:21:35.922Z"},"author":{"name":"Mike Mattozzi","email":"mike.mattozzi@gmail.com"},"repository":{"type":"git","url":"git://github.com/mmattozzi/webrepl.git"},"users":{"roadlabs":true}}