@axetroy/walk

walk dir

Usage no npm install needed!

<script type="module">
  import axetroyWalk from 'https://cdn.skypack.dev/@axetroy/walk';
</script>

README

Walk the dir

Greenkeeper badge Build Status License

Usage

npm install @axetroy/walk
const Walker = require('@axetroy/walk');

async function main() {
  const walker = new Walker('./');

  walker.on('file', function(filepath, stat) {
    console.log(filepath);
  });

  walker.on('directory', function(filepath, stat) {
    console.log(filepath);
  });

  walker.on('error', function(err) {
    console.error('something go wrong ' + err.toString());
  });

  await walker.walk();
}

main()
  .then(() => {
    console.log('all done');
  })
  .catch(function(err) {
    console.error(err);
  });

Contributing

Contributing Guid

Contributors


Axetroy

💻 🐛 🎨

License

FOSSA Status