{"_id":"jungles-files","_rev":"27-34210c60784d272a0bedf59fa645aa15","name":"jungles-files","description":"File server for jungles","dist-tags":{"latest":"2.1.0"},"versions":{"1.0.0":{"author":{"name":"Geert Pasteels","email":"geert.pasteels@gmail.com"},"name":"jungles-files","version":"1.0.0","description":"File server for jungles","dependencies":{"express":"~3.0.0","node-uuid":"~1.4.0"},"readme":"# Jungles Files\n\nExpress app with two endpoints to store and serve files.\n\n## Mount\n\n```js\napp.use('/files', require('jungles-files')(__dirname + '/media'); // Param: directory to store the files\n```\n\n## POST/:filename\n\nExpects req.body.file to be a data url. It will rename the file to uuid.extension, store the file in the directory and response with:\n\n```js\n{ filename: uuid.extension }\n```\n\n## GET/:filename\n\nReturns the file.\n","readmeFilename":"README.md","_id":"jungles-files@1.0.0","dist":{"shasum":"e6e6db239af0bcaea0f58445cf9ef067bf0ec673","tarball":"https://registry.npmjs.org/jungles-files/-/jungles-files-1.0.0.tgz","integrity":"sha512-mel9iP5Op302d4nWZbr+RuyDgQ8hylRAwPO86l/KePROTAD/shLmooce+fyJhXsHBc/+NktzPX16QxAcyjgz7w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEioJmunngbZUfbO8Wgto0d1uqukbsmgNCn3Rc/sv1irAiEA8NN/2dd1e5KXXXrrgE+lMKi2BBJHKCPDJe4PW0YPQLs="}]},"_from":".","_npmVersion":"1.2.9","_npmUser":{"name":"enome","email":"geert.pasteels@gmail.com"},"maintainers":[{"name":"enome","email":"geert.pasteels@gmail.com"}],"directories":{}},"1.1.0":{"author":{"name":"Geert Pasteels","email":"geert.pasteels@gmail.com"},"name":"jungles-files","version":"1.1.0","description":"File server for jungles","dependencies":{"express":"~3.0.0","node-uuid":"~1.4.0"},"readme":"# Jungles Files\n\nExpress app with two endpoints to store and serve files.\n\n## Mount\n\n```js\napp.use('/files', require('jungles-files')(__dirname + '/media'); // Param: directory to store the files\n```\n\n## POST/:filename\n\nExpects req.body.file to be a data url. It will rename the file to uuid.extension, store the file in the directory and response with:\n\n```js\n{ filename: uuid.extension }\n```\n\n## GET/:filename\n\nReturns the file.\n","readmeFilename":"README.md","_id":"jungles-files@1.1.0","dist":{"shasum":"d6d7899420295aebb2f347611b722bc55128e90b","tarball":"https://registry.npmjs.org/jungles-files/-/jungles-files-1.1.0.tgz","integrity":"sha512-xC7dOTlXVtSla4GqNwbb22mpOkhKqCy7lb4UYv8Ulcb/ea6dICQ0NFcVO+wSaV8tsoykJ6luIPah+BTR7n3wOQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDVcfXApDr7NSzeDzm55nnzkzKvyUTkiHvwNYlhQyDrmAiBUDSRZEMM7Ghv4A7zip+3rY/RdB/cUuIdltRDedH6hRw=="}]},"_from":".","_npmVersion":"1.2.9","_npmUser":{"name":"enome","email":"geert.pasteels@gmail.com"},"maintainers":[{"name":"enome","email":"geert.pasteels@gmail.com"}],"directories":{}},"1.2.0":{"author":{"name":"Geert Pasteels","email":"geert.pasteels@gmail.com"},"name":"jungles-files","version":"1.2.0","description":"File server for jungles","dependencies":{"express":"~3.0.0","node-uuid":"~1.4.0","jungles-functions":"~1.0.0"},"readme":"# Jungles Files\n\nExpress app with two endpoints to store and serve files.\n\n## Mount\n\n```js\napp.use('/files', require('jungles-files')(__dirname + '/media'); // Param: directory to store the files\n```\n\n## POST/:filename\n\nExpects req.body.file to be a data url. It will rename the file to uuid.extension, store the file in the directory and response with:\n\n```js\n{ filename: uuid.extension }\n```\n\n## GET/:filename\n\nReturns the file.\n","readmeFilename":"README.md","_id":"jungles-files@1.2.0","dist":{"shasum":"9f71cdd32896d2393638498bd63994f7b434b733","tarball":"https://registry.npmjs.org/jungles-files/-/jungles-files-1.2.0.tgz","integrity":"sha512-lwTdYG8lErfltDoRgyVuijQfhWjAVEIp9bUCoL1G3uGgs9l5Q540FalAJ+4yGQf534KpPsEoZeokfAFJiw9cww==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFy/LJcxX2swQ1lyDOo+3243jjuuILQ+6kGrEU839MISAiEA8lZrlCMz50Zl5mlEfmQKteLoYjk4QzgF1sFU+vpYXvA="}]},"_from":".","_npmVersion":"1.2.9","_npmUser":{"name":"enome","email":"geert.pasteels@gmail.com"},"maintainers":[{"name":"enome","email":"geert.pasteels@gmail.com"}],"directories":{}},"1.3.0":{"author":{"name":"Geert Pasteels","email":"geert.pasteels@gmail.com"},"name":"jungles-files","version":"1.3.0","description":"File server for jungles","dependencies":{"express":"~3.0.0","node-uuid":"~1.4.0","jungles-functions":"~1.0.0"},"readme":"# Jungles Files\n\nExpress app with two endpoints to store and serve files.\n\n## Mount\n\n```js\napp.use('/files', require('jungles-files')(__dirname + '/media');\n```\n\nThis will store your files in the __dirname/media directory.\n\n## POST/:filename\n\nExpects req.body.file to be a data url. It will rename the file to uuid+filename.extension, store the file in the directory and response with:\n\n```js\n{ filename: uuid+filename.extension }\n```\n\n## GET/:filename\n\nThis will serve the file with the matching filename. If a ?downloadquerystring is defined then it will add an attachment header with the filename - the uuid.\n","readmeFilename":"README.md","_id":"jungles-files@1.3.0","dist":{"shasum":"097ac71a2667bfbd3b4463a6ddbbd62441c5e22a","tarball":"https://registry.npmjs.org/jungles-files/-/jungles-files-1.3.0.tgz","integrity":"sha512-gQPXhe1hah8G5223UoA3OJjCckcsn6DCm+wnSNM4TIDKEgpxxl5NqDjxgHCfrNcxmHvvK4ITueuf5c0FJxSbAQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEmqFWABZ9MU0lV6tMLxvY0GRZqDugBteH9KxgwFoV7QAiEAommph9RZZeJCdgpf7tMzfPKdSh+dbmGMP6oYct6vY1k="}]},"_from":".","_npmVersion":"1.2.9","_npmUser":{"name":"enome","email":"geert.pasteels@gmail.com"},"maintainers":[{"name":"enome","email":"geert.pasteels@gmail.com"}],"directories":{}},"1.3.1":{"author":{"name":"Geert Pasteels","email":"geert.pasteels@gmail.com"},"name":"jungles-files","version":"1.3.1","description":"File server for jungles","dependencies":{"express":"~3.0.0","node-uuid":"~1.4.0","jungles-functions":"~1.0.0"},"readme":"# Jungles Files\n\nExpress app with two endpoints to store and serve files.\n\n## Mount\n\n```js\napp.use('/files', require('jungles-files')(__dirname + '/media');\n```\n\nThis will store your files in the __dirname/media directory.\n\n## POST/:filename\n\nExpects req.body.file to be a data url. It will rename the file to uuid+filename.extension, store the file in the directory and response with:\n\n```js\n{ filename: uuid+filename.extension }\n```\n\n## GET/:filename\n\nThis will serve the file with the matching filename. If a ?downloadquerystring is defined then it will add an attachment header with the filename - the uuid.\n","readmeFilename":"README.md","_id":"jungles-files@1.3.1","dist":{"shasum":"c25b01f1cf907e560a843ce6c80f4c3d87b83431","tarball":"https://registry.npmjs.org/jungles-files/-/jungles-files-1.3.1.tgz","integrity":"sha512-McLyOa0brnPFY86k8v/CdlAtjHGBnlCZyAxkptZUTNv2M06c93KOn/xoe7wQOXMoZwswzy0KS2J2sqVrHscL6g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCSjZwepp2iDDwBp51Ar8osBXGbwGd3fUxXRkSLhDGV5gIhAK296Gg2puJNYByZBYHahOGOBuAyDpgualxce2MPliqV"}]},"_from":".","_npmVersion":"1.2.15","_npmUser":{"name":"enome","email":"geert.pasteels@gmail.com"},"maintainers":[{"name":"enome","email":"geert.pasteels@gmail.com"}],"directories":{}},"1.4.0":{"author":{"name":"Geert Pasteels","email":"geert.pasteels@gmail.com"},"name":"jungles-files","version":"1.4.0","description":"File server for jungles","dependencies":{"express":"~3.2.6","node-uuid":"~1.4.0","jungles-functions":"~1.0.0"},"readme":"# Jungles Files\n\nExpress app with two endpoints to store and serve files.\n\n## API\n\n```js\napp.use('/files', require('jungles-files')(/* path to directoy to store the files */);\n```\n\n## Mount\n\n```js\napp.use('/files', require('jungles-files')(__dirname + '/media');\n```\n\n## POST/:filename\n\nExpects req.body.file to be a data url. It will rename the file to uuid+filename.extension, store the file in the directory and response with:\n\n```js\n{ filename: uuid+filename.extension }\n```\n\n## GET/:filename\n\nThis will serve the file with the matching filename. If a `?download` querystring is defined then it will add an attachment header with the filename minus the uuid.\n","readmeFilename":"README.md","_id":"jungles-files@1.4.0","dist":{"shasum":"f6040b21b78e45e3071d1d539e54789aba89912e","tarball":"https://registry.npmjs.org/jungles-files/-/jungles-files-1.4.0.tgz","integrity":"sha512-hCLUdTWvJYupEd9ZMbP5dBej3qdBjSGxCEUVOAwmCACGNOvI+8Vtg4LOJYfDL6zv7nmn8lxpXXbJ9nozYA1RzQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIECvXSPw8/YzvhtKfMFDmrVebkT7oW+idUFOtZGclsUlAiAeE3C98YI3Z8JWt8mpcKRl4xxQm2/uLpVGWF2i6+Ti5w=="}]},"_from":"files","_npmVersion":"1.2.15","_npmUser":{"name":"enome","email":"geert.pasteels@gmail.com"},"maintainers":[{"name":"enome","email":"geert.pasteels@gmail.com"}]},"2.0.0":{"author":{"name":"Geert Pasteels","email":"geert.pasteels@gmail.com"},"name":"jungles-files","version":"2.0.0","description":"File server for jungles","dependencies":{"express":"~3.3.4","async":"~0.2.9","rimraf":"~2.2.2"},"readme":"ERROR: No README data found!","_id":"jungles-files@2.0.0","dist":{"shasum":"8601c06f463c3714d0f8ebfe082811d5415c0ab3","tarball":"https://registry.npmjs.org/jungles-files/-/jungles-files-2.0.0.tgz","integrity":"sha512-DHpNHUDjG7HbzaCf9JqondBUJku4GbNWbcLd28MBpsXjNW+/Rne2jqd8+mI+RRySA7yRaQNnh5VQk7L8ltWQPQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID9WD5zlzsliFLlu5MBrgRrTHrMoip08RgEq8DqAjk9EAiEAnYLeAYX/TybVExbHG7Lsy2HcBcz/fNq0BxpH8CDvWBU="}]},"_from":".","_npmVersion":"1.3.5","_npmUser":{"name":"enome","email":"geert.pasteels@gmail.com"},"maintainers":[{"name":"enome","email":"geert.pasteels@gmail.com"}]},"2.1.0":{"author":{"name":"Geert Pasteels","email":"geert.pasteels@gmail.com"},"name":"jungles-files","version":"2.1.0","description":"File server for jungles","dependencies":{"express":"~3.3.4","async":"~0.2.9","rimraf":"~2.2.2","fs.extra":"~1.2.1"},"readme":"# Jungles Files\n\nExpress app with endpoints to crud files.\n\n## API\n\n```js\napp.use('/files', require('jungles-files')(/* path to directoy to store the files */);\n```\n\n## Mount\n\n```js\napp.use('/files', require('jungles-files')(__dirname + '/media');\n```\n","readmeFilename":"README.md","_id":"jungles-files@2.1.0","dist":{"shasum":"3230fbbe9d09927a56427487bdbbcaa353c3f982","tarball":"https://registry.npmjs.org/jungles-files/-/jungles-files-2.1.0.tgz","integrity":"sha512-oxvUzahVnzI++r1ZOjBgolu9spBTlJOSnCF5n6uDS/t4nF4Xb6jiRzsM/Af1YTno2bgQsHfdSK2n73Ab9lSSTA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD660srpNropP5h2JnIgVQjX25SDuf56XAA1tK4vqeWHAIhAJ2kh4l4P9lfSh/4YHCTH2ktdiDaFhYSH/RxnxiDOvge"}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"enome","email":"geert.pasteels@gmail.com"},"maintainers":[{"name":"enome","email":"geert.pasteels@gmail.com"}]}},"readme":"# Jungles Files\n\nExpress app with two endpoints to store and serve files.\n\n## Mount\n\n```js\napp.use('/files', require('jungles-files')(__dirname + '/media'); // Param: directory to store the files\n```\n\n## POST/:filename\n\nExpects req.body.file to be a data url. It will rename the file to uuid.extension, store the file in the directory and response with:\n\n```js\n{ filename: uuid.extension }\n```\n\n## GET/:filename\n\nReturns the file.\n","maintainers":[{"name":"enome","email":"geert.pasteels@gmail.com"}],"time":{"modified":"2022-06-19T07:21:09.575Z","created":"2013-03-18T18:37:26.224Z","1.0.0":"2013-03-18T18:37:29.043Z","1.1.0":"2013-03-18T18:38:42.986Z","1.2.0":"2013-03-19T12:21:45.353Z","1.3.0":"2013-03-25T21:10:31.700Z","1.3.1":"2013-06-12T15:12:03.639Z","1.4.0":"2013-06-15T18:38:59.902Z","2.0.0":"2013-08-21T16:42:22.525Z","2.1.0":"2013-11-17T14:01:16.771Z"},"author":{"name":"Geert Pasteels","email":"geert.pasteels@gmail.com"}}