Handler Files for Node.js
Collection of libraries and shortcuts for local file handling and carrecados with express.js (multer)
Express
var upload = require('./index').upload, express = require('express'), app = express() app.listen('4040'); app.post('/', function(req, res) { upload(req, res).files('avatar').then((file) => { res.send(file) })});
Local
var local = require('').local local.dir('./uploads') //List alllocal.dir(['./uploads', './tmp']) //List all in all folderslocal.file('./image.jpg') //get filelocal.file(['./image.jpg', './photo.jpg']) //get fileslocal.findName('./uploads', /.jpg/) //returns all files with the extension .jpg ./uploads folderlocal.findContent('./uploads', /.jpg/) //returns all files with the contents "hello" in ./uploads folder