Matches a specific cli argument for node js
Ideally, to be used with JS Array join and String replace methods, like so:
process.argv.join(' ').replace(/["']/g, '').match(/(?<=--path[ |=])dist\/.*(?=$)/);
The join is to convert array to string to prevent iterating.
The replace is to remove single or double quotes for easier matching....
Submitted by Marc Kassay - 3 years ago