mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-20 14:56:19 -04:00
debugging File shim
This commit is contained in:
parent
14d591caa1
commit
d080c5dd14
7 changed files with 23 additions and 20 deletions
|
@ -967,6 +967,10 @@ class Utils {
|
|||
throw new TypeError("Browser environment cannot support readFileSync");
|
||||
}
|
||||
|
||||
console.log('readFileSync:');
|
||||
console.log(file);
|
||||
console.log(Buffer.from(file.data).toString());
|
||||
|
||||
return Buffer.from(file.data).buffer;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue