jsinspect icon indicating copy to clipboard operation
jsinspect copied to clipboard

[feature request] support suffix other than .js or .jsx

Open JillShu opened this issue 6 years ago • 2 comments

Hi Thanks for creating this brilliant tool. Our project is trying to use this tool, however we want to apply it to a script language defined by our own. It's syntax is a subset of JavaScript so the tool works well on the texts. The only problem is that we are using a suffix defined by ourself. Is it possible to let JsInspect accept an argument to include certain type of files? Thanks

JillShu avatar Jan 04 '19 09:01 JillShu

.mjs is the file extension for native ESM, which is supported in Node.js v13.2+. Even adding it to the hardcoded list of extensions prior to making the list configurable would be great.

jaydenseric avatar Nov 23 '19 06:11 jaydenseric

you can do jsinspect some_path/**/*.random_file_extension

ray-holland-es avatar Dec 22 '21 16:12 ray-holland-es