lisdir
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i lisdir

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

12.2 kB

Total Files

10

Last publish

Collaborators

  • lffg