Exemplo n.º 1
0
module.exports = function(filepath, layerName, callback) {
  sniffer.quaff(filepath, true, function(err, protocol) {
    if (err) return callback(err);
    var uri = protocol + '//' + path.resolve(filepath);
    if (layerName) uri += '?layerName=' + layerName;
    callback(null, uri);
  });
};
Exemplo n.º 2
0
 filetype: function(callback) {
   filesniffer.quaff(filePath, false, callback)
 },
Exemplo n.º 3
0
 protocol: function(callback) {
   filesniffer.quaff(filePath, true, callback)
 },