{"_id":"sideline","_rev":"19-4c6c2c6f7664c2e1c55e0c933cf623cf","name":"sideline","description":"CoffeeScript shell for your server","dist-tags":{"latest":"1.2.1"},"versions":{"1.0.0":{"name":"sideline","description":"Sideline, a CoffeeScript shell for your server","author":"","version":"1.0.0","homepage":"http://github.com/assaf/sideline","repository":{"type":"git","url":"git@github.com:assaf/sideline.git"},"bin":{"sideline":"./bin/sideline"},"main":"./lib/sideline.coffee","engines":{"node":">=0.4.0"},"dependencies":{"coffee-script":"~1.1.1","eyes":"~0.1.6","js2coffee":"~0.1.1"},"devDependencies":{},"_npmJsonOpts":{"file":"/Users/assaf/.npm/sideline/1.0.0/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"sideline@1.0.0","_engineSupported":true,"_npmVersion":"1.0.27","_nodeVersion":"v0.4.11","_defaultsLoaded":true,"dist":{"shasum":"f2a993913362344c35e45cb0e190987de2482c88","tarball":"https://registry.npmjs.org/sideline/-/sideline-1.0.0.tgz","integrity":"sha512-yW/TRsdP5jO/Vk4YHNxFJhpxsl9Xa1VfQPM6GNNJofqq7R4OKT0cpa3eEYanNss8OP0yFXFU4ITmbOsrWfpX6A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGpYBwmPDx9UWOE+BW4xIY56EvNl3PXAvvlOH3trr6xvAiAtaMnOvjQUGYDy6Yr+BXcXc2tNkw6CZJDNumqRahFLZA=="}]},"maintainers":[{"name":"assaf","email":"assaf@labnotes.org"}],"directories":{}},"1.0.1":{"name":"sideline","description":"CoffeeScript shell for your server","author":"","version":"1.0.1","homepage":"http://github.com/assaf/sideline","repository":{"type":"git","url":"git@github.com:assaf/sideline.git"},"bin":{"sideline":"./bin/sideline"},"main":"./lib/sideline.coffee","files":["CHANGELOG.md","README.md"],"engines":{"node":">=0.4.0"},"dependencies":{"coffee-script":"~1.1.0","eyes":"~0.1.6","js2coffee":"~0.1.1"},"devDependencies":{},"_npmJsonOpts":{"file":"/Users/assaf/.npm/sideline/1.0.1/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"sideline@1.0.1","_engineSupported":true,"_npmVersion":"1.0.27","_nodeVersion":"v0.4.11","_defaultsLoaded":true,"dist":{"shasum":"c8c9e45ebe3cf07663da9ef551e4460a2d5def4b","tarball":"https://registry.npmjs.org/sideline/-/sideline-1.0.1.tgz","integrity":"sha512-BZlYiLqnspM4MnylLtMXPyCT9ojSQx/8BDx8otguSeen6dzkqLv3GxYUbuaKH4VohL8qFYFiTeKPvfxcv/SxyA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEMv+Z0jaoJ+gGd6JFj0QANum9slg8ZDVWvbJrxId9jLAiAPPmbZUkS1npOT88RUkLmxGmuWHL+E/eglUUrE0a07tg=="}]},"maintainers":[{"name":"assaf","email":"assaf@labnotes.org"}],"directories":{}},"1.0.2":{"name":"sideline","description":"CoffeeScript shell for your server","author":"","version":"1.0.2","homepage":"http://github.com/assaf/sideline","repository":{"type":"git","url":"git@github.com:assaf/sideline.git"},"bin":{"sideline":"./bin/sideline"},"main":"./lib/sideline.coffee","files":["CHANGELOG.md","README.md"],"engines":{"node":">=0.4.0"},"dependencies":{"coffee-script":"~1.1.0","eyes":"~0.1.6","js2coffee":"~0.1.1"},"devDependencies":{},"_npmJsonOpts":{"file":"/Users/assaf/.npm/sideline/1.0.2/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"sideline@1.0.2","_engineSupported":true,"_npmVersion":"1.0.27","_nodeVersion":"v0.4.11","_defaultsLoaded":true,"dist":{"shasum":"ff2c85b2fa62c36b1faa5499b79b9fab6f1ec78a","tarball":"https://registry.npmjs.org/sideline/-/sideline-1.0.2.tgz","integrity":"sha512-oePhDLv5syA255FbVlfHwavifbYhWAWlovTM2ezJidoYPf15f8yN44my4qNKQ4mbm9htcSwB3u/mhHMPF0mucA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDvoZNLVEEVdI27B9hL47cGPDKqmN7nlS5UVkWVwtcuUAIhAO7znAtz+BcR4WBcUUh0sTXsV5IDULuqdYYShShVLApo"}]},"maintainers":[{"name":"assaf","email":"assaf@labnotes.org"}]},"1.1.0":{"name":"sideline","description":"CoffeeScript shell for your server","author":"","version":"1.1.0","homepage":"http://github.com/assaf/sideline","repository":{"type":"git","url":"git@github.com:assaf/sideline.git"},"bin":{"sideline":"./bin/sideline"},"main":"./lib/sideline.coffee","files":["CHANGELOG.md","README.md"],"engines":{"node":">=0.4.0"},"dependencies":{"coffee-script":"~1.1.0","eyes":"~0.1.6","js2coffee":"~0.1.1"},"devDependencies":{},"_npmJsonOpts":{"file":"/Users/assaf/.npm/sideline/1.1.0/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"sideline@1.1.0","_engineSupported":true,"_npmVersion":"1.0.27","_nodeVersion":"v0.4.11","_defaultsLoaded":true,"dist":{"shasum":"f307ecf083623aef0bbfee9c055d0f9c99b25d59","tarball":"https://registry.npmjs.org/sideline/-/sideline-1.1.0.tgz","integrity":"sha512-YQcSoDqXxXj5d/T+04XuafJ6SESkhlH6zwWDtEnLa+/AkFL+DzXz2oL1k9nGFcQ4mtSiZUjDXZ9ErMZ6r+jNTA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCG4T+sshDE9A7j9Kpdzkt7N79G9LSaHcQvmtJQ8ur2OAIhAKFFMEiQnANpQWx539qmf+lIO8nfkHMw2dVKZBLDQEW+"}]},"maintainers":[{"name":"assaf","email":"assaf@labnotes.org"}]},"1.2.0":{"name":"sideline","description":"CoffeeScript shell for your server","author":"","version":"1.2.0","homepage":"http://github.com/assaf/sideline","repository":{"type":"git","url":"git@github.com:assaf/sideline.git"},"bin":{"sideline":"./bin/sideline"},"main":"./lib/sideline.coffee","files":["CHANGELOG.md","README.md"],"engines":{"node":">=0.4.0"},"dependencies":{"coffee-script":"~1.1.0","eyes":"~0.1.6","js2coffee":"~0.1.1"},"devDependencies":{},"_npmJsonOpts":{"file":"/Users/assaf/.npm/sideline/1.2.0/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"sideline@1.2.0","_engineSupported":true,"_npmVersion":"1.0.27","_nodeVersion":"v0.4.11","_defaultsLoaded":true,"dist":{"shasum":"20b0bf60363020a1c6b18cd915dd05931f7e5cc6","tarball":"https://registry.npmjs.org/sideline/-/sideline-1.2.0.tgz","integrity":"sha512-Tss8q7SGL2KvKqR81tMi693gIorq0CaN2t7rSWslNTst6dj+hNze27HG2AfC4/fcPTstRpoNlKPAM8QmQnsIuQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDI664I6tQA3kSJNuPbm9Inwl8nVT7iEhACHKTDnBV28AiEAtHcDX8oX6V0SFBVB6aDJv1qJCs1qFqDdHaYVGot8gRY="}]},"maintainers":[{"name":"assaf","email":"assaf@labnotes.org"}]},"1.2.1":{"name":"sideline","description":"CoffeeScript shell for your server","author":"","version":"1.2.1","homepage":"http://github.com/assaf/sideline","repository":{"type":"git","url":"git@github.com:assaf/sideline.git"},"bin":{"sideline":"./bin/sideline"},"main":"./lib/sideline.coffee","engines":{"node":">=0.4.0"},"dependencies":{"coffee-script":"~1.1.0","eyes":"~0.1.6","js2coffee":"~0.1.1"},"devDependencies":{},"bugs":{"url":"https://github.com/assaf/sideline/issues"},"_id":"sideline@1.2.1","dist":{"shasum":"0671c7a30ec7a7d127b7563853a99a0ba4d55a8c","tarball":"https://registry.npmjs.org/sideline/-/sideline-1.2.1.tgz","integrity":"sha512-6/T2fp2CJbFYHRipBxuNaJHolYVSy1ra3aMSXG5eGKOQXBj6/BugXRGmOVZU7QvXwlfm77yq1YsT9t1FscJobA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDoxst9dGS6qx4u5xmOPub2UrBy0nXwMBQHSk0vwylS5QIhAIntdxZJqxU2tCtQlsfG6Bc976pudks9IqgVi8AWqV+U"}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"assaf","email":"assaf@labnotes.org"},"maintainers":[{"name":"assaf","email":"assaf@labnotes.org"}]}},"maintainers":[{"name":"assaf","email":"assaf@labnotes.org"}],"time":{"modified":"2022-06-26T19:15:48.670Z","created":"2011-09-01T06:53:05.133Z","1.0.0":"2011-09-01T06:53:06.515Z","0.1.0":"2011-09-01T07:10:09.867Z","1.0.1":"2011-09-01T07:10:46.173Z","1.0.2":"2011-09-01T21:19:40.479Z","1.1.0":"2011-09-02T07:32:36.845Z","1.2.0":"2011-09-06T08:07:54.304Z","1.2.1":"2014-04-18T17:55:46.699Z"},"repository":{"type":"git","url":"git@github.com:assaf/sideline.git"},"readme":"# Sideline, a CoffeeScript shell for your server\n\nUse Sideline in development to troubleshoot bugs, munge data, live-edit\nfunctions, test code snippets.\n\nConnect Sideline over SSH to troubleshoot production instance.\n\nRun Sideline in standalone mode and use model objects to mess with the\ndatabase.\n\nSideline talks CoffeeScript.\n\n\n## Add a shell to your Web server\n\nWith Express you could:\n\n    Sideline = require(\"sideline\")\n\n    server.configure \"development\", ->\n      Sideline.using(server: server).listen()\n\nConnect to the running server and do stuff:\n\n    $ sideline\n    > server.settings.env\n    'development'\n    > server.routes.routes.post.map (r)-> r.path\n    [ '/signin', '/signup', '/v1/push', '/upload' ]\n    > server.settings.cache = false\n    false\n\nThings you will always find in the global scope:\n\n    console\n    global\n    process\n    module\n    setTimeout/clearTimeout\n    setInterval/clearInterval\n    sideline\n    require\n    _\n\nThe `_` property hold the result of the last statement.\n\nUse `sideline.using()` to add more properties to the global scope.\n\n\n## Edit code snippets with the scratchpad\n\nThe `.edit` command opens a text editor, and runs the code when you’re\ndone:\n\n    $ sideline\n    > .show\n\n    > .edit\n    1\n    > .show\n    c = \"foo:bar:baz\"\n    c.split().length\n\nUse `.show` to see the contents of the scratchpad.\n\nYou can also use `.edit` and `.show` to edit functions:\n\n    $ sideline\n    > .show foo.bar\n    foo.bar = ->\n      \"before\"\n    > .edit foo.bar\n    > foo.bar()\n    'after'\n    > .show foo.bar\n    foo.bar = ->\n      \"after\"\n\nSideline uses the editor from the `SIDELINE_EDITOR` or `EDITOR`\nenvironment variable.\n\nFor example, for Vim you would want to use: `vim --nofork -c \"set\nsyntax=coffee\"`.\n\nSee more commands by typing `.help`.\n\nFor example, try this:\n\n    $ sideline --self\n    > .expand require(\"./lib/sideline\")\n\n\n## Add an application shell\n\nYou can run Sideline as standalone shell by connecting to itself:\n\n    #!/usr/bin/env coffee\n    app = require(\"config/app\")\n    Sideline = require(\"sideline\")\n    Sideline.using(app: app).connect()\n\nSideline defaults to port 1973, but when used in this way will upgrade\nto port 1974.\n\nOr use the `--self` command line option:\n\n    $ sideline --self\n    Sideline listening on port 1974\n    Sideline client connected from 127.0.0.1\n    >\n\n\n## Teleporting into production\n\nUse your SSH access to tunnel into production instance:\n\n    $ ssh -f -L 1973:localhost:1973 -N awesome.do.ma.in\n    $ sideline\n    >\n\n\n## License\n\nSideline is copyright of [Assaf Arkin](http://labnotes.org), released\nunder the MIT License\n\n","homepage":"http://github.com/assaf/sideline","bugs":{"url":"https://github.com/assaf/sideline/issues"},"readmeFilename":"README.md"}