is-existing-file:检查某个路径是否存在并且是文件(即不是文件夹)

时间:2021-05-20 12:23:23
【文件属性】:
文件名称:is-existing-file:检查某个路径是否存在并且是文件(即不是文件夹)
文件大小:2KB
文件格式:ZIP
更新时间:2021-05-20 12:23:23
JavaScript 现有文件 检查某个路径是否存在并且是文件(即不是文件夹) 安装 使用安装is-existing-file : npm install --save is-existing-file 用法 模块使用 var isExistingFile = require ( 'is-existing-file' ) ; isExistingFile ( '/a/file/path' , function ( result ) { // ... } ) ; 原料药 isExistingFile(filepath, cb) 名称 类型 描述 文件路径 String 要检查的文件路径 b Function 回调功能 执照 麻省理工学院
【文件预览】:
is-existing-file-master
----.gitignore(14B)
----README.md(741B)
----package.json(638B)
----index.js(236B)
----test.js(702B)
----.npmignore(8B)

网友评论