Download node_modules/form-data-encoder/lib/cjs/util/isFileLike.js from HarshvardhanCn01/Voice-Assistant: direct link, hf CLI and curl.
- Browser
- Download file 649 Bytes
-
https://huggingface.co/spaces/HarshvardhanCn01/Voice-Assistant/resolve/main/node_modules/form-data-encoder/lib/cjs/util/isFileLike.js
- Command line
-
hf download hf://spaces/HarshvardhanCn01/Voice-Assistant/node_modules/form-data-encoder/lib/cjs/util/isFileLike.js
-
curl -L -o isFileLike.js https://huggingface.co/spaces/HarshvardhanCn01/Voice-Assistant/resolve/main/node_modules/form-data-encoder/lib/cjs/util/isFileLike.js
649 Bytes
| ; | |
| var __importDefault = (this && this.__importDefault) || function (mod) { | |
| return (mod && mod.__esModule) ? mod : { "default": mod }; | |
| }; | |
| Object.defineProperty(exports, "__esModule", { value: true }); | |
| exports.isFileLike = void 0; | |
| const isFunction_1 = __importDefault(require("./isFunction")); | |
| const isFileLike = (value) => Boolean(value | |
| && typeof value === "object" | |
| && (0, isFunction_1.default)(value.constructor) | |
| && value[Symbol.toStringTag] === "File" | |
| && (0, isFunction_1.default)(value.stream) | |
| && value.name != null | |
| && value.size != null | |
| && value.lastModified != null); | |
| exports.isFileLike = isFileLike; | |