JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q48018F
  • License MIT

Directory walk

Package Exports

  • iwalk

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (iwalk) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

iwalk 爱彳亍

遍历文件夹并得到所有文件路径

爱上您的磁盘目录

安装

npm install iwalk

使用

var Walker = require("iwalk");

var walker = new Walker();
walker.walk(source, function (filename, isDirectory) {
  console.log(filename);
  console.log(isDirectory);
});

walker.on('end', function () {
  console.log('遍历完啦');
});