Skip to content

useIsFile

Introduction

判断当前路径是否是文件

Basic Usage

ts
import { useIsFile } from '@flypeng/tool/node';

Type Declaration

ts
/**
 * 判断当前路径是否是文件
 * @param path
 * @returns
 */
declare const useIsFile: (path: string) => boolean;

Released under the MIT License.