https://github.com/artdecocode/moderne
Transpile import and export statements into require and module.exports with a regex.
https://github.com/artdecocode/moderne
Last synced: about 2 months ago
JSON representation
Transpile import and export statements into require and module.exports with a regex.
- Host: GitHub
- URL: https://github.com/artdecocode/moderne
- Owner: artdecocode
- License: mit
- Created: 2018-07-21T06:51:28.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-07-21T06:52:42.000Z (over 7 years ago)
- Last Synced: 2025-02-23T13:22:50.545Z (11 months ago)
- Language: JavaScript
- Size: 8.79 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# moderne
[](https://npmjs.org/package/moderne)
`moderne` is a new Node.js npm package. Transpile import and export statements into require and module.exports with a regex.
```sh
yarn add -E moderne
```
## Table Of Contents
- [Table Of Contents](#table-of-contents)
- [API](#api)
* [`moderne(arg1: string, arg2?: boolean)`](#mynewpackagearg1-stringarg2-boolean-void)
## API
The package is available by importing its default function:
```js
import moderne from 'moderne'
```
### `moderne(`
`arg1: string,`
`arg2?: boolean,`
`): void`
Call this function to get the result you want.
```js
/* yarn example */
import moderne from 'moderne'
(async () => {
await moderne()
})()
```
---
(c) [Art Deco][1] 2018
[1]: https://artdeco.bz