better host-process support

Signed-off-by: Travis Glenn Hansen <travisghansen@yahoo.com>
This commit is contained in:
Travis Glenn Hansen
2022-05-21 10:10:20 -06:00
parent a7d5b53fd3
commit 82961ac36f
2 changed files with 15 additions and 24 deletions
+5
View File
@@ -113,6 +113,10 @@ function getLargestNumber() {
return number;
}
function stripWindowsDriveLetter(path) {
return path.replace(/^[a-zA-Z]:/, "");
}
/**
* transition function to replicate `request` style requests using axios
*
@@ -248,6 +252,7 @@ module.exports.crc16 = crc16;
module.exports.lockKeysFromRequest = lockKeysFromRequest;
module.exports.getLargestNumber = getLargestNumber;
module.exports.stringify = stringify;
module.exports.stripWindowsDriveLetter = stripWindowsDriveLetter;
module.exports.axios_request = axios_request;
module.exports.default_supported_block_filesystems =
default_supported_block_filesystems;