o1js
Version:
TypeScript framework for zk-SNARKs and zkApps
15 lines (12 loc) • 326 B
JavaScript
import replace from 'replace-in-file';
const options = {
files: './dist/web/examples/zkapps/**/*.js',
from: /from 'o1js'/g,
to: "from '../../../index.js'",
};
try {
const results = await replace(options);
console.log('Replacement results:', results);
} catch (error) {
console.error('Error occurred:', error);
}