2.0.1 • Published 4 years ago

@toolia/make-index v2.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
4 years ago

Notice regarding version 1.0.1

Version 1.0.1 was non-functional and therefore useless, and so is now deprecated. This version now correctly exports. Eventually it should be possible to import and export on the same line, for example with this syntax:

export someModule from './someModule'

For now, this package, @toolia/make-index@2.0.0, simply imports every .js file using the filename as the module name, and then exports an object containing every module.

make-index

This is a command line tool which generates an index.js esm (import/export) file from the filenames within the folder.

  1. Install npm i -g @toolia/make-index

  2. Navigate to the folder you want to use the command on cd path/to/directory

  3. Run the command make-index

Todos

  • Make it possible to make 'require' modules instead of just esm import/export modules.

  • Write tests and increase code quality.

  • Allow recursive version and generally expand functionality where relevant.

  • Make option to export other files such as .jsx.

2.0.1

4 years ago

1.0.2

4 years ago

2.0.0

4 years ago

1.0.1

4 years ago