The following command will change 'use strict'
to 'use rust'
!
find . -name "*.js" -type f ! -path "*/node_modules/*" -exec sed -i "s/'use strict'/'use rust'/g" {} +
Before we have a slow, legacy js project
'use strict';
function slow() {
// ...
After the command it's fixed!
'use rust';
fn fast() {
// ...
Does this support WASM?