UNPKG

@flex-development/pathe

Version:

Universal drop-in replacement for node:path

12 lines (11 loc) 307 B
import { ERR_INVALID_ARG_TYPE } from "@flex-development/errnode"; function validateString(value, name) { if (typeof value === "string") return true; throw new ERR_INVALID_ARG_TYPE(name, "string", value); } var validate_string_default = validateString; export { validate_string_default as default };