Initial import with skill sheet working
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
||||
'use strict';
|
||||
|
||||
function inspectStream(stream) {
|
||||
var streamType = stream.constructor.name;
|
||||
// Avoid StreamStream
|
||||
if (streamType === 'Stream') {
|
||||
streamType = '';
|
||||
}
|
||||
|
||||
return '<' + streamType + 'Stream>';
|
||||
}
|
||||
|
||||
module.exports = inspectStream;
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
'use strict';
|
||||
|
||||
function isStream(stream) {
|
||||
if (!stream) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (typeof stream.pipe !== 'function') {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
module.exports = isStream;
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
'use strict';
|
||||
|
||||
var path = require('path');
|
||||
|
||||
function normalize(str) {
|
||||
return str === '' ? str : path.normalize(str);
|
||||
}
|
||||
|
||||
module.exports = normalize;
|
||||
Reference in New Issue
Block a user