{"_id":"vfs-http-adapter","_rev":"25-17d45475c9004307a897753886b822da","name":"vfs-http-adapter","description":"A http middleware to wrap vfs instances and expose them via a RESTful interface","dist-tags":{"latest":"0.2.3"},"versions":{"0.0.0":{"author":{"name":"Tim Caswell","email":"tim@c9.io"},"name":"vfs-http-adapter","description":"A http middleware to wrap vfs instances and expose them via a RESTful interface","version":"0.0.0","repository":{"type":"git","url":"git://github.com/c9/vfs.git"},"main":"restful.js","dependencies":{},"devDependencies":{},"optionalDependencies":{},"engines":{"node":"*"},"_npmUser":{"name":"creationix","email":"tim@creationix.com"},"_id":"vfs-http-adapter@0.0.0","_engineSupported":true,"_npmVersion":"1.1.16","_nodeVersion":"v0.6.15","_defaultsLoaded":true,"dist":{"shasum":"043d0c1127d2204002961d41b05f9634c9418e15","tarball":"https://registry.npmjs.org/vfs-http-adapter/-/vfs-http-adapter-0.0.0.tgz","integrity":"sha512-QHlN/w6R3mGQbMV2bwMC93bh8XhmcK7t5y4djjBIANiXB16AGd3InAQoLlKdcRbGN1+e2jaRwuJ+2g0no9Wm7A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDWtpY6+I6dE0dN9gK5qGYCoEmrAXX9Mbbdqi3djJujJgIhAMU3eABbcV7bttUcKGfGLyxiy1kehnEQ6FvxCIXbwAQ8"}]},"readme":"","maintainers":[{"name":"creationix","email":"tim@creationix.com"}]},"0.0.1":{"author":{"name":"Ajax.org B.V.","email":"info@ajax.org"},"contributors":[{"name":"Tim Caswell","email":"tim@c9.io"}],"name":"vfs-http-adapter","description":"A http middleware to wrap vfs instances and expose them via a RESTful interface","version":"0.0.1","repository":{"type":"git","url":"git://github.com/c9/vfs.git"},"main":"restful.js","dependencies":{},"devDependencies":{},"optionalDependencies":{},"licenses":[{"type":"MIT","url":"http://github.com/c9/vfs/raw/master/http-adapter/LICENSE"}],"engines":{"node":"*"},"_npmUser":{"name":"creationix","email":"tim@creationix.com"},"_id":"vfs-http-adapter@0.0.1","_engineSupported":true,"_npmVersion":"1.1.19","_nodeVersion":"v0.6.16","_defaultsLoaded":true,"dist":{"shasum":"c561f093c2253b5097058016c6043515b00e14d6","tarball":"https://registry.npmjs.org/vfs-http-adapter/-/vfs-http-adapter-0.0.1.tgz","integrity":"sha512-ZvB0Q28BIfsNeGoH5dzkVEzCCMgaUGXm75D+wSXIkuZVg7JAUimELuGDHpX9B0/6tTl1EVcD2TSDEBeqxUbJNg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDbl9MvLjafhLXNZAb3rOGJBgwlwFA2LnBlyLJ0iM6lJQIgIQuJ1onHOastj9CpwnTkIpSJrKbjPyZr+VbFCgdd7a4="}]},"readme":"","maintainers":[{"name":"creationix","email":"tim@creationix.com"}]},"0.0.2":{"author":{"name":"Ajax.org B.V.","email":"info@ajax.org"},"contributors":[{"name":"Tim Caswell","email":"tim@c9.io"}],"name":"vfs-http-adapter","description":"A http middleware to wrap vfs instances and expose them via a RESTful interface","version":"0.0.2","repository":{"type":"git","url":"git://github.com/c9/vfs.git"},"main":"restful.js","dependencies":{},"devDependencies":{},"optionalDependencies":{},"licenses":[{"type":"MIT","url":"http://github.com/c9/vfs/raw/master/http-adapter/LICENSE"}],"engines":{"node":"*"},"_npmUser":{"name":"creationix","email":"tim@creationix.com"},"_id":"vfs-http-adapter@0.0.2","_engineSupported":true,"_npmVersion":"1.1.24","_nodeVersion":"v0.6.19","_defaultsLoaded":true,"dist":{"shasum":"36c0bcfa38421a65c37cb4660bfeb48d4890b663","tarball":"https://registry.npmjs.org/vfs-http-adapter/-/vfs-http-adapter-0.0.2.tgz","integrity":"sha512-rMSWGasofr3Qp6UlbeOcy2tmU3s5ze9xozVTP6Q9Gyf/gVJwp0hRdozVbjtODMdRr02O1CfNB8Yejn7TWosVYw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDVCnBdZKVjrkHIto6B3MoWZ9H35wrgeH0kF+c4ZVi+mwIhAICnbIpLVxGuGpGJqMZbexU/EAf7uu2jntL6oXeooQTd"}]},"readme":"","maintainers":[{"name":"creationix","email":"tim@creationix.com"},{"name":"fjakobs","email":"fabian.jakobs@web.de"},{"name":"zef","email":"zef@c9.io"}]},"0.0.3":{"author":{"name":"Ajax.org B.V.","email":"info@ajax.org"},"contributors":[{"name":"Tim Caswell","email":"tim@c9.io"}],"name":"vfs-http-adapter","description":"A http middleware to wrap vfs instances and expose them via a RESTful interface","version":"0.0.3","repository":{"type":"git","url":"git://github.com/c9/vfs.git"},"main":"restful.js","dependencies":{},"devDependencies":{},"optionalDependencies":{},"licenses":[{"type":"MIT","url":"http://github.com/c9/vfs/raw/master/http-adapter/LICENSE"}],"engines":{"node":"*"},"readme":"","_id":"vfs-http-adapter@0.0.3","dist":{"shasum":"66b5c344cd7709fb6380d64cb1b875d5f956ebf7","tarball":"https://registry.npmjs.org/vfs-http-adapter/-/vfs-http-adapter-0.0.3.tgz","integrity":"sha512-1YjHt69FX2wQqZwFwDAGbWTGWtzS7LjbX8s6Babjgmx6LCpKwjLareIApY5Lur7tbBOwz09m/v7jfsYAL0yXBA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC0MLieYo1eCQxA37hG0bzsVoZpvm9QMSa5FL0LjFvcbAiAw9nDwM5U5JYjpTKVCZOYpWN48Ij9BZKE6uVws6mZKYg=="}]},"maintainers":[{"name":"creationix","email":"tim@creationix.com"},{"name":"fjakobs","email":"fabian.jakobs@web.de"},{"name":"zef","email":"zef@c9.io"}]},"0.0.4":{"author":{"name":"Ajax.org B.V.","email":"info@ajax.org"},"contributors":[{"name":"Tim Caswell","email":"tim@c9.io"}],"name":"vfs-http-adapter","description":"A http middleware to wrap vfs instances and expose them via a RESTful interface","version":"0.0.4","repository":{"type":"git","url":"git://github.com/c9/vfs.git"},"main":"restful.js","dependencies":{},"devDependencies":{},"optionalDependencies":{},"licenses":[{"type":"MIT","url":"http://github.com/c9/vfs/raw/master/http-adapter/LICENSE"}],"engines":{"node":"*"},"readme":"","_id":"vfs-http-adapter@0.0.4","dist":{"shasum":"15becce91e52f124a66b2ae9ad0d1559f5292137","tarball":"https://registry.npmjs.org/vfs-http-adapter/-/vfs-http-adapter-0.0.4.tgz","integrity":"sha512-6PMmFvERLxrqfqZ0fJjY9JihvgI5m5CEI6L37W+ibS/2Ohx2YLEyj57tlksiCCWegmMbyuHiOXik3UrFIEM0tg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC/7y+n3lSZ1YHkWzqWVBO1SbpinJSpAa41NVDWn4cAaQIgCPQwZ6xxIYTQNdldEQq7qgIEGIFXu+vKnQJwlvJIbcw="}]},"maintainers":[{"name":"creationix","email":"tim@creationix.com"},{"name":"fjakobs","email":"fabian.jakobs@web.de"},{"name":"zef","email":"zef@c9.io"}]},"0.2.0":{"author":{"name":"Ajax.org B.V.","email":"info@ajax.org"},"contributors":[{"name":"Tim Caswell","email":"tim@c9.io"}],"name":"vfs-http-adapter","description":"A http middleware to wrap vfs instances and expose them via a RESTful interface","version":"0.2.0","repository":{"type":"git","url":"git://github.com/c9/vfs.git"},"main":"restful.js","dependencies":{},"devDependencies":{},"optionalDependencies":{},"licenses":[{"type":"MIT","url":"http://github.com/c9/vfs/raw/master/http-adapter/LICENSE"}],"engines":{"node":"*"},"readme":"","_id":"vfs-http-adapter@0.2.0","dist":{"shasum":"fe70dbf9b05068a62cae0dcc8fce63c761a02e88","tarball":"https://registry.npmjs.org/vfs-http-adapter/-/vfs-http-adapter-0.2.0.tgz","integrity":"sha512-lz/Z/MbDvg+kuoxj10aId5hPPOPKi5uHrAzjK573m5fG8beBDuUrQ6pVhcPV1i63yNzI6nhbFmJ0X4uBLjPmQA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFl2hm3YJXPezgzi5RtKXUrvu67rPGln9blIW5dsTIflAiEAipfzrGTxUMQRylFEeeXjppoCxjRDkuVETFqBGa2kMMc="}]},"maintainers":[{"name":"creationix","email":"tim@creationix.com"},{"name":"fjakobs","email":"fabian.jakobs@web.de"},{"name":"zef","email":"zef@c9.io"}]},"0.2.1":{"author":{"name":"Ajax.org B.V.","email":"info@ajax.org"},"contributors":[{"name":"Tim Caswell","email":"tim@c9.io"}],"name":"vfs-http-adapter","description":"A http middleware to wrap vfs instances and expose them via a RESTful interface","version":"0.2.1","repository":{"type":"git","url":"git://github.com/c9/vfs.git"},"main":"restful.js","dependencies":{},"devDependencies":{},"optionalDependencies":{},"licenses":[{"type":"MIT","url":"http://github.com/c9/vfs/raw/master/http-adapter/LICENSE"}],"engines":{"node":"*"},"readme":"","_id":"vfs-http-adapter@0.2.1","dist":{"shasum":"0231353ee2ef1f752046c4c0cdd7880b6e3c31c2","tarball":"https://registry.npmjs.org/vfs-http-adapter/-/vfs-http-adapter-0.2.1.tgz","integrity":"sha512-MOXde2yVrCpGBNvSLx1NlcuAtTdmgJwvnWdv3BHwTqF52Qu64dxcg66GPSQ5nQj6dtmrD0w+UmT72e3ZO58WrQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGCpr2sG8JspXgUBoi7a7wmIcT1wqhfDCGWJP4QfxdJyAiEAk80Ql0my2ZKtdf5XjxYZfTMzgtVC4kvKWsUaOZNtJLE="}]},"maintainers":[{"name":"creationix","email":"tim@creationix.com"},{"name":"fjakobs","email":"fabian.jakobs@web.de"},{"name":"zef","email":"zef@c9.io"}]},"0.2.2":{"author":{"name":"Ajax.org B.V.","email":"info@ajax.org"},"contributors":[{"name":"Tim Caswell","email":"tim@c9.io"}],"name":"vfs-http-adapter","description":"A http middleware to wrap vfs instances and expose them via a RESTful interface","version":"0.2.2","repository":{"type":"git","url":"git://github.com/c9/vfs.git"},"main":"restful.js","dependencies":{},"devDependencies":{},"optionalDependencies":{},"licenses":[{"type":"MIT","url":"http://github.com/c9/vfs/raw/master/http-adapter/LICENSE"}],"engines":{"node":"*"},"readme":"","_id":"vfs-http-adapter@0.2.2","dist":{"shasum":"b9b4ce8f291ffd60967ccab071b34b64fe29144c","tarball":"https://registry.npmjs.org/vfs-http-adapter/-/vfs-http-adapter-0.2.2.tgz","integrity":"sha512-RP2PL0XZ2V4nBWgUv236jrp0+LfIa3oUMC0UdQ7kzW8oN4BUmIgntUg0Oc37cKE6EgM8QXiiFrc9nLFheoZbMQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICIq0oCoErwiJQcRjqJYPvXqIuxx5PZWw6L1NKmHh6pQAiAtJv9d1AFIUSHP98g9twZIRNSAe81J1VWnpTqtgWFlBQ=="}]},"maintainers":[{"name":"creationix","email":"tim@creationix.com"},{"name":"fjakobs","email":"fabian.jakobs@web.de"},{"name":"zef","email":"zef@c9.io"}]},"0.2.3":{"author":{"name":"Ajax.org B.V.","email":"info@ajax.org"},"contributors":[{"name":"Tim Caswell","email":"tim@c9.io"}],"name":"vfs-http-adapter","description":"A http middleware to wrap vfs instances and expose them via a RESTful interface","version":"0.2.3","repository":{"type":"git","url":"git://github.com/c9/vfs-http-adapter.git"},"main":"restful.js","dependencies":{},"devDependencies":{},"optionalDependencies":{},"licenses":[{"type":"MIT","url":"http://github.com/c9/vfs-http-adapter/raw/master/LICENSE"}],"engines":{"node":"*"},"_npmUser":{"name":"creationix","email":"tim@creationix.com"},"_id":"vfs-http-adapter@0.2.3","_engineSupported":true,"_npmVersion":"1.1.24","_nodeVersion":"v0.6.19","_defaultsLoaded":true,"dist":{"shasum":"3623a2ce40d18cd738e6e9ab0067b67af042edb9","tarball":"https://registry.npmjs.org/vfs-http-adapter/-/vfs-http-adapter-0.2.3.tgz","integrity":"sha512-0DWAUKq+OcNdAy25iFI8C/lFGs+IzY3kbAI2hatfqYDC9l7r60a3Sata2wy7Dlg6mm9BjEHathfEHTsp3pRZ8A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD7UOJMCJA17LNW2PrsJnneVX6BJCkEglajKrT399ChvwIgJLFZmHjde+GdQRVsPS6PoNVrkKBsgMEIFHXkJusJF9I="}]},"readme":"# HTTP Adapter\n\nThis module is a connect/stack middleware module that wraps a vfs instance and\nserves it via a HTTP RESTful interface.\n\nThe module is a setup function that creates a middleware instance.\n\n```js\nvar root = \"http://localhost:8080/rest/\";\n\nvar vfs = require('vfs-local')({\n  root: process.cwd(),\n  httpRoot: root,\n});\n\nrequire('http').createServer(require('stack')(\n  require('vfs-http-adapter')(\"/rest/\", vfs)\n)).listen(8080);\n\nconsole.log(\"RESTful interface at \" + root);\n```\n\n## `HEAD /any/path`\n\nAll HEAD requests are converted to GET requests internally and act identical,\nexcept there is an internal flag in the vfs layer telling it to not stream the body.\n\n## `GET /path/to/file`\n\nServe a file to the client as a stream.  Supports etags and range requests.\n\n## `GET /directory/path/with/slash/`\n\nServe a directory listing as a JSON document.\n\nThis is served as a streaming json document with a weak etag (since the order\nof the entries is not defined.)  It supports conditional GET requests\n\nSee `vfs.readdir` below for the format of the JSON.\n\n## `PUT /path/to/file`\n\nRecieve a file from the client and save it to the vfs.  The file body is streamed.\n\n## `PUT /directory/path/with/slash/`\n\nCreate a directory\n\n## `DELETE /path/to/file`\n\nDelete a file.\n\n## `DELETE /directory/path/with/slash/`\n\nDelete a directory (not recursive)\n\n\n## `POST /path/to/target`\n\nPOST is used for various adhoc commands that are useful but don't fit well into\nthe RESTful paradigm.  The client sends a JSON body containing the request information.\n\nCurrently this includes:\n\n - {\"renameFrom\": from} - rename a file from `from` to `target`.\n - {\"copyFrom\": from} - copy a file from `from` to `target`.\n - {\"linkTo\": data} - create a symlink at `target` containing `data`.\n\n","maintainers":[{"name":"creationix","email":"tim@creationix.com"},{"name":"fjakobs","email":"fabian.jakobs@web.de"},{"name":"zef","email":"zef@c9.io"}]}},"readme":"","maintainers":[{"name":"creationix","email":"tim@creationix.com"},{"name":"fjakobs","email":"fabian.jakobs@web.de"}],"time":{"modified":"2022-06-28T16:45:36.079Z","created":"2012-04-24T17:18:34.812Z","0.0.0":"2012-04-24T17:18:35.736Z","0.0.1":"2012-05-15T18:37:49.219Z","0.0.2":"2012-06-22T16:47:59.886Z","0.0.3":"2012-07-12T01:21:34.294Z","0.0.4":"2012-07-16T17:59:09.681Z","0.2.0":"2012-07-18T21:52:38.004Z","0.2.1":"2012-07-26T21:45:15.191Z","0.2.2":"2012-08-01T17:53:14.975Z","0.2.3":"2012-09-20T16:41:47.133Z"},"author":{"name":"Ajax.org B.V.","email":"info@ajax.org"},"repository":{"type":"git","url":"git://github.com/c9/vfs-http-adapter.git"},"users":{"fgribreau":true}}