@universal-packages/fs-utils
Advanced tools
Comparing version 1.1.1 to 1.2.0
{ | ||
"name": "@universal-packages/fs-utils", | ||
"version": "1.1.1", | ||
"version": "1.2.0", | ||
"description": "Extended functionality for fs", | ||
@@ -20,9 +20,9 @@ "author": "David De Anda <david@universal-packages.com> (https://github.com/universal-packages)", | ||
"@trivago/prettier-plugin-sort-imports": "^4.3.0", | ||
"@types/jest": "^29.5.12", | ||
"@types/jest": "^29.5.14", | ||
"@types/node": "^18.11.9", | ||
"@universal-packages/maintenance": "^1.6.3", | ||
"@universal-packages/maintenance": "^1.6.12", | ||
"jest": "^29.7.0", | ||
"prettier": "^3.0.3", | ||
"ts-jest": "^29.1.2", | ||
"typescript": "^5.4.3" | ||
"prettier": "^3.4.1", | ||
"ts-jest": "^29.2.5", | ||
"typescript": "^5.7.2" | ||
}, | ||
@@ -29,0 +29,0 @@ "jest": { |
16
utils.js
@@ -6,3 +6,10 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.expandPath = exports.ensureFile = exports.ensureDirectory = exports.quickCheckFile = exports.checkFile = exports.quickCheckDirectory = exports.checkDirectory = exports.HOME_DIR = exports.IS_WINDOWS = void 0; | ||
exports.HOME_DIR = exports.IS_WINDOWS = void 0; | ||
exports.checkDirectory = checkDirectory; | ||
exports.quickCheckDirectory = quickCheckDirectory; | ||
exports.checkFile = checkFile; | ||
exports.quickCheckFile = quickCheckFile; | ||
exports.ensureDirectory = ensureDirectory; | ||
exports.ensureFile = ensureFile; | ||
exports.expandPath = expandPath; | ||
const fs_1 = __importDefault(require("fs")); | ||
@@ -23,3 +30,2 @@ const os_1 = __importDefault(require("os")); | ||
} | ||
exports.checkDirectory = checkDirectory; | ||
function quickCheckDirectory(location) { | ||
@@ -32,3 +38,2 @@ const finalLocation = expandPath(location); | ||
} | ||
exports.quickCheckDirectory = quickCheckDirectory; | ||
function checkFile(location) { | ||
@@ -44,3 +49,2 @@ const finalLocation = expandPath(location); | ||
} | ||
exports.checkFile = checkFile; | ||
function quickCheckFile(location) { | ||
@@ -53,3 +57,2 @@ const finalLocation = expandPath(location); | ||
} | ||
exports.quickCheckFile = quickCheckFile; | ||
function ensureDirectory(location) { | ||
@@ -67,3 +70,2 @@ const finalLocation = expandPath(location); | ||
} | ||
exports.ensureDirectory = ensureDirectory; | ||
function ensureFile(location) { | ||
@@ -79,3 +81,2 @@ const finalLocation = expandPath(location); | ||
} | ||
exports.ensureFile = ensureFile; | ||
function expandPath(location) { | ||
@@ -85,3 +86,2 @@ const expanded = location && !exports.IS_WINDOWS && exports.HOME_DIR ? location.replace(/^~(?=$|\/|\\)/, exports.HOME_DIR) : location; | ||
} | ||
exports.expandPath = expandPath; | ||
//# sourceMappingURL=utils.js.map |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14335