commonjs-indexer

Automatically create an index.js file from specified directory

Usage no npm install needed!

<script type="module">
  import commonjsIndexer from 'https://cdn.skypack.dev/commonjs-indexer';
</script>

README

commonjs-indexer

Automatically create an index.js file from specified directory

Install

npm install -g commonjs-indexer

Usage

commonjs-indexer <directory> > <outputFile>

Example

commonjs-indexer ./ > index.js