Choose the conversion direction, paste your module code, then click Convert. Review the output — static require/import patterns are converted automatically.
Default (const x = require('y')), named (const { a } = require('y')), side-effect (require('y')), module.exports and exports.foo — and the reverse import/export forms for ESM to CommonJS.
No. Only static, top-level patterns are converted. Dynamic or conditional require() calls, re-exports (export ... from) and mixed default+named imports are left unchanged.
It handles the common cases but is a static text transform, not a bundler. Review edge cases such as interop defaults and mixed imports before shipping.