delete-target-files

1.0.1 • Public • Published

安装

npm install delete-target-files

导入

const deleteTargetFiles = require('delete-target-files')

使用

// 删除文件夹中指定名字的文件(包括子文件夹)
deleteTargetFiles('directory','name.txt')

// 也可以传入一个数组
deleteTargetFiles('directory',['picture.jpg','advertise.txt'])

开源协议

ISC

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i delete-target-files

      Weekly Downloads

      1

      Version

      1.0.1

      License

      ISC

      Unpacked Size

      2.11 kB

      Total Files

      5

      Last publish

      Collaborators

      • huangjx