try saving bash script as file

This commit is contained in:
ibrahim0814
2019-11-18 23:39:04 -08:00
parent 889584d6f9
commit 1be0517b99
93 changed files with 10599 additions and 17 deletions
+3
View File
@@ -0,0 +1,3 @@
module.exports = function isBuffer(arg) {
return arg instanceof Buffer;
}
+6
View File
@@ -0,0 +1,6 @@
module.exports = function isBuffer(arg) {
return arg && typeof arg === 'object'
&& typeof arg.copy === 'function'
&& typeof arg.fill === 'function'
&& typeof arg.readUInt8 === 'function';
}