{"bin":{"level-server":"./bin/server.js"},"bugs":{"url":"https://github.com/Wayla/level-server/issues"},"dist":{"shasum":"752821dd79094b0aed4c6b4914e24f64159c23a3","tarball":"https://registry.npmjs.org/level-server/-/level-server-0.2.1.tgz","integrity":"sha512-p2jtRvlZSRP945PmHnNf3kKzzavzyCnGhL7VstKDKeeYeDZ6tqGls28sepow5V1T88kixkQ18RJqZ3ncbybuhw==","signatures":[{"sig":"MEQCIGi9mF2/8+zdhOzD4jFpI88eIj7IB64y/REfllT0k6xPAiBoxtFTFEfqBRiuGnq0ZtolYiRyD6sbAuSqOMwg9V+K2g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"name":"level-server","_from":".","author":{"url":"http://wayla.com","name":"Julian Gruber","email":"julian@wayla.com"},"readme":"\n# level-server\n\nStandalone [LevelDB](https://github.com/rvagg/node-levelup) file server. Put\ndata into it using [multilevel](https://github.com/juliangruber/multilevel)\nand get it served over http. Also has\n[level-sublevel](https://github.com/dominictarr/level-sublevel).\n\n## Usage\n\nGiven a database full of files at `./db`, create a http server on port 8000\nand a multilevel server on port 9000:\n\n```bash\n$ level-server --path ./db --http 8000 --multilevel 9000\n```\n\nThen connect to it from a client:\n\n```js\nvar multilevel = require('multilevel');\nvar getServer = require('multilevel-serve');\nvar net = require('net');\n\nvar db = multilevel.client(getServer.manifest);\nvar server = getServer(db);\n```\n\nNow you can use all of [level-serve](https://github.com/level-serve)'s api:\n\n```js\nserver.store('foo', 'Bar! :D');\n```\n\nAnd then get this file via http:\n\n```bash\n$ curl http://localhost:8000/files/foo\nBar! :D\n```\n\n## API\n\n```js\n$ level-server --help\nHost a standalone LevelDB file server.\nUsage: level-server [options]\n\nOptions:\n  --path              Serve local database\n  --addr              Serve remote database\n  --http              Port to host http server on        [required]\n  --multilevel, --ml  Port to host multilevel server on\n  --keyEncoding       keyEncoding for levelUp\n  --valueEncoding     valueEncoding for levelUp\n  --help, -h          Print usage instructions\n```\n\n## Installation\n\n```js\n$ npm install -g level-server\n```\n\n## License\n\n(MIT)\n\nCopyright (c) 2013 Wayla &lt;data@wayla.com&gt;\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies\nof the Software, and to permit persons to whom the Software is furnished to do\nso, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","license":"MIT","_npmUser":{"name":"juliangruber","email":"julian@juliangruber.com"},"homepage":"https://github.com/Wayla/level-server","keywords":["leveldb","static","file","server","bin"],"repository":{"url":"git://github.com/Wayla/level-server.git","type":"git"},"_npmVersion":"1.2.32","description":"Standalone LevelDB file server.","maintainers":[{"name":"juliangruber","email":"julian@juliangruber.com"},{"name":"wayla","email":"data@wayla.com"}],"dependencies":{"debug":"~0.7.2","level":"~0.10.0","optimist":"~0.5.2","multilevel":"~4.0.5","level-serve":"1.1.0","level-sublevel":"~4.7.0","multilevel-serve":"0.0.0"},"readmeFilename":"README.md","_id":"level-server@0.2.1","version":"0.2.1"}