1.0.0 ā€¢ Published 5 years ago

lisdir v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

lisdir

šŸ”Ž List a directory (lisdir). Perhaps load its modules too?

Build Status NPM Uses TypeScript

Installing

yarn add lisdir

# If you're using NPM:
# npm install lisdir

Basic Usage

import { listDirectory, listModules } from 'lisdir';

const entries = await listDirectory('./some/directory', {
  filter: (entry) => entry.isFile(),
  recursive: true
});

const modules = await listModules('./some/directory', {
  filter: (entry) => entry.name.startsWith('foo'),
  recursive: true,
  extensions: ['js']
});

Authors and License

lffg and contributors.

MIT License, see the included MIT file.