import to require import (.*) from (.*)[;]?$ const $1 = require($2); export to module.exports export ((?:async )?(?:function)*(?:class)* ([a-zA-Z0-9]+)[ ]?\([\s\S]*?\n}\n) $1 module.exports.$2 = $2