UNPKG

@visulima/fs

Version:

Human friendly file system utilities for Node.js

12 lines (9 loc) 507 B
'use strict'; var __defProp = Object.defineProperty; var __name = (target, value) => __defProp(target, "name", { value, configurable: true }); const assertValidFileOrDirectoryPath = /* @__PURE__ */ __name((fileOrDirectoryPath) => { if (!fileOrDirectoryPath || !(fileOrDirectoryPath instanceof URL) && typeof fileOrDirectoryPath !== "string") { throw new TypeError("Path must be a non-empty string or URL."); } }, "assertValidFileOrDirectoryPath"); module.exports = assertValidFileOrDirectoryPath;