moderne
v1.0.0
Published
Transpile import and export statements into require and module.exports with a regex.
Downloads
6
Readme
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:
import moderne from 'moderne'
moderne(
arg1: string,
arg2?: boolean,
): void
Call this function to get the result you want.
/* yarn example */
import moderne from 'moderne'
(async () => {
await moderne()
})()
(c) Art Deco 2018