servidor funciona, gpio desabilitat

This commit is contained in:
nau
2016-06-21 18:42:57 +02:00
parent b5a55ed6b1
commit 4825f68edf
874 changed files with 109057 additions and 0 deletions

19
node_modules/shortid/lib/is-valid.js generated vendored Executable file
View File

@@ -0,0 +1,19 @@
'use strict';
var alphabet = require('./alphabet');
function isShortId(id) {
if (!id || typeof id !== 'string' || id.length < 6 ) {
return false;
}
var characters = alphabet.characters();
var invalidCharacters = id.split('').map(function(char){
if (characters.indexOf(char) === -1) {
return char;
}
}).join('').split('').join('');
return invalidCharacters.length === 0;
}
module.exports = isShortId;