Run your own scripts with vsc-base (includes methods for vscode, fs.extra, ts).
See .vsc-script folder in source for examples.
The extensions can be installed from vscode marketplace.
Why vsc Script?
You couldt always just run js/ts runs in your system with nodejs, but this extension gives you the context of vscode.
Commen methods that make custom scripting easy can be found in the examples in .vsc-script folder in this source code.
Dev (Create vsc-script)
A script file is written in typescript.
You can use these modules in your script: vsc-base, fs-extra, vscode and typescript:
The script must export one async function named 'run' that takes an Uri (vscode.Uri).
The uri is the path to the file/folder right-clicked in vscode when the user runs the script.
Full documentation for vsc-base can be found on http://vsc-base.org
vsc-script is based on vsc-base. (And vsc-base, vsc-base.org and vsc-script shares one mono-respo)
vsc-base will get more convenient method over time for working with folder/files, paths, strings and other elements that make it easier to create vscode extension and writen vsc-scripts.