listjs

Display all JS files of a Node.js project.

Usage no npm install needed!

<script type="module">
  import listjs from 'https://cdn.skypack.dev/listjs';
</script>

README

listjs

Build Status

Display all JS files of a Node.js project.

Install

npm install listjs -S

Usage

const listJS = require('./listjs');

const ignore = ['bower_components', 'foo', 'test'];

listJS('project/path/here', ignore)
.then((files) => {
  console.log(files);
})
.catch((e) => {
  console.error(e);
});