{"_id":"y-brackets-server","_rev":"9-8d2800d6aaa5fe47822fb7fe118af1c1","name":"y-brackets-server","time":{"modified":"2022-06-29T06:27:15.739Z","created":"2017-03-03T01:55:01.377Z","0.5.8":"2017-03-03T01:55:01.377Z","0.5.9":"2017-03-03T05:53:02.422Z","0.5.10":"2017-03-03T06:34:35.233Z","0.5.11":"2017-03-06T01:04:44.353Z","0.5.12":"2017-04-11T07:20:24.865Z"},"maintainers":[{"name":"yuzhenpin","email":"yuzhenpin@gmail.com"}],"dist-tags":{"latest":"0.5.11"},"description":"Brackets Server is a server for providing hosted version of the popular code editor Brackets.","readme":"Brackets Server\n===============\n!!IMPORTANT!! For a * reason, I removed the copy/cut function. \nif you want to use hosted brackets, please npm install brackets instead.\n\nBrackets Server is a server for providing hosted version of the popular code editor [Brackets](http://brackets.io/). The code editor can be loaded directly in the web browser and it doesn’t require additional installations or browser extensions. Brackets works just like the desktop version, except that all projects and files reside on the server instead of the local file system.\n\nThe server may be useful for remote development, real-time changes and testing, development form thin clients or devices such as tablets, or it could be used in conjunction with other web applications for collaboration.\n\nTo check the current verion of Brackets source used in the server, please see [CHANGELOG](https://github.com/rabchev/brackets-server/blob/master/CHANGELOG.md).\n\nInstallation\n------------\n\nInstall from npm:\n\n    $ npm install y-brackets-server -g\n\nUsage Examples\n--------------\n\n    $ brackets --port 80 --proj-dir /var/projects --supp-dir /var/brackets\n\n**IMPORTANT:** Make sure ***projects*** directory exists.\n\n**IMPORTANT:** Brackets Server cannot work simultaneously on the same machine with the desktop Brackets because of \nport conflict in one of the build-in modules. The error thrown is: \"Error: listen EADDRINUSE\". \nTo workaround this problem if you ever need to use bouth simultaneously, run Brackets Server in Docker container.\n\nAll arguments are optional.\n\n| Short Option | Long Option      | Default Value     | Description\n|--------------|------------------|-------------------|------------------------------------------------------------\n| `-p <prot>`  | `--port`         | `6800`            | TCP port on which Brackets server is listening.\n| `-j <dir>`   | `--proj-dir`     | `~/Projects`      | Root directory for projects. Directories above this root cannot be accessed.\n| `-s <dir>`   | `--supp-dir`     | `~/.brackets-srv` | Root directory for Brackets supporting files such as user extensions, configurations and state persistence.\n| `-d`         | `--user-domains` | `false`           | Allows Node domains to be loaded from user extensions.\n\n**NOTE:** Some Brackets extensions require external Node.js process, called node domain. Node domains run on the server, thereby allowing arbitrary code to be executed on the server through custom extensions.  Since this imposes very serious security and stability risks, Brackets Server will not load nor execute domains from user extensions, unless `-d` option is specified.\n\nEmbedding Brackets Server in Web Applications\n---------------------------------------------\n\nExample with Express:\n\n```javascript\n    var path        = require(\"path\"),\n        http        = require(\"http\"),\n        express     = require(\"express\"),\n        brackets    = require(\"brackets\"),\n        app         = express(),\n        server      = http.createServer(app);\n\n    app.get(\"/\", function (req, res) {\n        res.send(\"Hello World\");\n    });\n\n    var bracketsOpts = {\n        projectsDir: path.join(__dirname, \"..\"),\n        supportDir: path.join(__dirname, \"..\", \"/support\")\n    };\n    brackets(server, bracketsOpts);\n\n    server.listen(3000);\n\n    console.log(\"Your application is availble at http://localhost:3000\");\n    console.log(\"You can access Brackets on http://localhost:3000/brackets/\");\n```\n\n**NOTE:** The default values for `projectsDir` and `supportDir` are different when Brackets Server is initiated from code. They are respectively `./projects` and `./brackets`, relative to the current working directory.\n\nOptions:\n\n| Option           | Default Value     | Description\n|------------------|-------------------|------------------------------------------------------------\n| httpRoot         | `/brackets`       | Defines the root HTTP endpoint for Brackets Server (http://yourdomain.com/brackets).\n| projectsDir      | `./projects`      | Root directory for projects. Directories above this root cannot be accessed.\n| supportDir       | `./brackets`      | Root directory for Brackets supporting files such as user extensions, configurations and state persistence.\n| allowUserDomains | `false`           | Allows Node domains to be loaded from user extensions.\n\n\nContributing\n------------\n\nPlease see [`CONTRIBUTING.md`](https://github.com/rabchev/brackets-server/blob/master/CONTRIBUTING.md)\n\nLicense\n-------\n\n(MIT License)\n\nCopyright (c) 2012 Boyan Rabchev <boyan@rabchev.com>. All rights reserved.\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","versions":{"0.5.10":{"name":"y-brackets-server","description":"Brackets Server is a server for providing hosted version of the popular code editor Brackets.","version":"0.5.10","author":{"name":"Boyan Rabchev","email":"boyan@rabchev.com"},"contributors":[{"name":"Boyan Rabchev","email":"boyan@rabchev.com"}],"repository":{"type":"git","url":"git+https://github.com/YuZhenpin/brackets-server.git"},"main":"./lib/server","preferGlobal":"true","bin":{"brackets":"./bin/run.js","brackets-server":"./bin/run.js"},"dependencies":{"commander":"^2.3.0","glob":"^4.0.6","mkdirp":"^0.5.0","ncp":"^1.0.0","open":"^0.0.5","rimraf":"^2.2.8","send":"^0.9.3","socket.io":"1.1.0","socket.io-client":"^1.4.0"},"devDependencies":{"mocha":"*","chai":"*","supertest":"*","grunt":"*","grunt-release":"*","grunt-shell":"*","grunt-simple-mocha":"*","grunt-node-inspector":"*","grunt-concurrent":"*","grunt-contrib-requirejs":"*","grunt-contrib-compress":"*","grunt-contrib-copy":"*","grunt-contrib-htmlmin":"*","grunt-contrib-less":"0.8.2","grunt-replace":"*","grunt-contrib-concat":"*","grunt-targethtml":"*","grunt-usemin":"0.1.11","grunt-contrib-clean":"*","load-grunt-tasks":"*","grunt-text-replace":"*","q":"0.9.2","shelljs":"^0.3.0"},"keywords":["brackets","node","nodejs","code","editor","web","project","application","management","dev","development","javascript","html","css","ide"],"scripts":{"test":"grunt test","postinstall":"node lib/post-install.js"},"bugs":{"url":"https://github.com/YuZhenpin/brackets-server/issues","email":"boyan@rabchev.com"},"license":"MIT","engines":{"node":">=0.10"},"gitHead":"dcec838e7b94ba88205a431082c18e6075374085","homepage":"https://github.com/YuZhenpin/brackets-server#readme","_id":"y-brackets-server@0.5.10","_shasum":"8aca04172166ae26dfadcc092742a3dbada1ad9a","_from":".","_npmVersion":"4.3.0","_nodeVersion":"4.8.0","_npmUser":{"name":"yuzhenpin","email":"yuzhenpin@gmail.com"},"dist":{"shasum":"8aca04172166ae26dfadcc092742a3dbada1ad9a","tarball":"https://registry.npmjs.org/y-brackets-server/-/y-brackets-server-0.5.10.tgz","integrity":"sha512-azibqiwrpeg2S4MfM1aISGOvUX0f6ZlvYB/Oa/AGh/Z0vrl9QGoifBUqxWlpSfGR2XMBIRP8PaPLx6lDzTCtaQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFCQ7LhkTWMriVwtTONwYjtqlJpd6i6nKZQGcA5F6FBaAiEA2g2Rqvs0SXwI+4fN6+B+dEpcqnJRzqymhwb2p+xFyP4="}]},"maintainers":[{"name":"yuzhenpin","email":"yuzhenpin@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/y-brackets-server-0.5.10.tgz_1488522871153_0.648592164972797"}},"0.5.11":{"name":"y-brackets-server","description":"Brackets Server is a server for providing hosted version of the popular code editor Brackets.","version":"0.5.11","author":{"name":"Boyan Rabchev","email":"boyan@rabchev.com"},"contributors":[{"name":"Boyan Rabchev","email":"boyan@rabchev.com"}],"repository":{"type":"git","url":"git+https://github.com/YuZhenpin/brackets-server.git"},"main":"./lib/server","preferGlobal":"true","bin":{"brackets":"./bin/run.js","brackets-server":"./bin/run.js"},"dependencies":{"commander":"^2.3.0","glob":"^4.0.6","mkdirp":"^0.5.0","ncp":"^1.0.0","open":"^0.0.5","rimraf":"^2.2.8","send":"^0.9.3","socket.io":"1.1.0","socket.io-client":"^1.4.0"},"devDependencies":{"mocha":"*","chai":"*","supertest":"*","grunt":"*","grunt-release":"*","grunt-shell":"*","grunt-simple-mocha":"*","grunt-node-inspector":"*","grunt-concurrent":"*","grunt-contrib-requirejs":"*","grunt-contrib-compress":"*","grunt-contrib-copy":"*","grunt-contrib-htmlmin":"*","grunt-contrib-less":"0.8.2","grunt-replace":"*","grunt-contrib-concat":"*","grunt-targethtml":"*","grunt-usemin":"0.1.11","grunt-contrib-clean":"*","load-grunt-tasks":"*","grunt-text-replace":"*","q":"0.9.2","shelljs":"^0.3.0"},"keywords":["brackets","node","nodejs","code","editor","web","project","application","management","dev","development","javascript","html","css","ide"],"scripts":{"test":"grunt test","postinstall":"node lib/post-install.js"},"bugs":{"url":"https://github.com/YuZhenpin/brackets-server/issues","email":"boyan@rabchev.com"},"license":"MIT","engines":{"node":">=0.10"},"gitHead":"50a30c6ab6a265311db709421c5a84a9b89014f1","homepage":"https://github.com/YuZhenpin/brackets-server#readme","_id":"y-brackets-server@0.5.11","_shasum":"c6f6248f8ac00056e9550e0a3250a1fd4bba7202","_from":".","_npmVersion":"4.3.0","_nodeVersion":"4.8.0","_npmUser":{"name":"yuzhenpin","email":"yuzhenpin@gmail.com"},"dist":{"shasum":"c6f6248f8ac00056e9550e0a3250a1fd4bba7202","tarball":"https://registry.npmjs.org/y-brackets-server/-/y-brackets-server-0.5.11.tgz","integrity":"sha512-cPx/7lGGR2s2LdKW1tH/OtxvhsidunCmIyVBvrQTiec3Gk2WhSeBCG7pAB+REQi6srkCxQOIONJnyCrMwnlv8A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCC1oYbr4vM+qgnEiw2ij66k+NvXrqYkm5OVjH8jMXzgAIgd54QOFQQN/D0bAKF5Dg1OHBN+BCqLnczI5q/bhxBatM="}]},"maintainers":[{"name":"yuzhenpin","email":"yuzhenpin@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/y-brackets-server-0.5.11.tgz_1488762283901_0.9189965631812811"}}},"homepage":"https://github.com/YuZhenpin/brackets-server#readme","keywords":["brackets","node","nodejs","code","editor","web","project","application","management","dev","development","javascript","html","css","ide"],"repository":{"type":"git","url":"git+https://github.com/YuZhenpin/brackets-server.git"},"contributors":[{"name":"Boyan Rabchev","email":"boyan@rabchev.com"}],"author":{"name":"Boyan Rabchev","email":"boyan@rabchev.com"},"bugs":{"url":"https://github.com/YuZhenpin/brackets-server/issues","email":"boyan@rabchev.com"},"license":"MIT","readmeFilename":"README.md"}