crawl-path

0.0.6 • Public • Published

usage

yarn add crawl-path
 
 
import {crawlPath} from 'crawl-path'
 
let files = new Map
 
await crawlPath(path.join(__dirname, 'foo'), {
  onDir: async (_files, _path, depth) => {
    files.set(_path, _files)
  },
  onFile: async(file) => {
    console.log(file)
  }
})
 

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.0.61latest

Version History

VersionDownloads (Last 7 Days)Published
0.0.61
0.0.50
0.0.40
0.0.30
0.0.20
0.0.10

Package Sidebar

Install

npm i crawl-path

Weekly Downloads

1

Version

0.0.6

License

MIT

Unpacked Size

7.74 kB

Total Files

19

Last publish

Collaborators

  • vaiii
  • koishi