js-index-exporter

1.0.7 • Public • Published

JS-Index-Exporter

JS-Index-Exporter is a simple command-line tool for exporting JavaScript or TypeScript files. It can traverse a directory and perform exports on all .js or .ts files.

Installation

Install with npm:

npm install js-index-exporter

Usage

Run the js-index-exporter command in the command line:

js-index-exporter [options] <inputPath> <outputFile>

Arguments:

  • inputPath: The input path, should be a directory.
  • outputFile: The output file, all exported content will be written to this file.

Options:

  • -v, --verbose: Enable verbose mode.
  • -e, --exclude <path>: Exclude path, files under this path will not be exported.(Not implemented yet)
  • -w, --watch: Watch mode, the program will keep running and re-export after file changes.
  • -d, --dry-run: Dry run mode, the program will print out the operations it would perform, but not actually perform them.(Not implemented yet)

Example

js-index-exporter ./src ./output.js --verbose --watch

This will export all .js or .ts files from the src directory and write the exported content to the output.js file. The program will run in verbose mode and re-export after file changes.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Author

gylove1994


Readme

Keywords

Package Sidebar

Install

npm i js-index-exporter

Weekly Downloads

1

Version

1.0.7

License

MIT

Unpacked Size

28.2 kB

Total Files

8

Last publish

Collaborators

  • gylove1994