moderne

1.0.0 • Public • Published

moderne

npm version

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

Readme

Keywords

Package Sidebar

Install

npm i moderne

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

4.58 kB

Total Files

8

Last publish

Collaborators

  • zvr