Einkaufslisten anzeigen, Datenbankeinbindung

This commit is contained in:
Lukas Nowy
2018-10-27 01:10:46 +02:00
parent 5e3c83707f
commit 8e7d96310f
425 changed files with 77158 additions and 3 deletions

18
express-server/node_modules/empty-dir/index.js generated vendored Normal file
View File

@ -0,0 +1,18 @@
const fs = require('fs');
function isEmpty (path, callback) {
fs.readdir(path, function (err, files) {
if (err === null) {
callback(null, !!!files.length)
} else {
callback(err);
}
});
};
isEmpty.sync = function (path) {
var files = fs.readdirSync(path);
return !!!files.length;
};
module.exports = isEmpty;