0.1.1 • Published 7 years ago

@axetroy/walk v0.1.1

Weekly downloads
38
License
Apache
Repository
github
Last release
7 years ago

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