moderne
moderne
is a new Node.js npm package. Transpile import and export statements into require and module.exports with a regex.
yarn add -E moderne
Table Of Contents
API
The package is available by importing its default function:
moderne(
arg1: string,
arg2?: boolean,
): void
Call this function to get the result you want.
/* yarn example */ async { await }
(c) Art Deco 2018