UNPKG

esm-to-plain-js

Version:

Simplistic string substitution to replace export with a globalThis assignment (CLI tool designed for use in npm package.json scripts)

10 lines (7 loc) 189 B
#!/usr/bin/env node ///////////////////// // esm-to-plain-js // // MIT License // ///////////////////// import { esmToPlainJs } from '../dist/esm-to-plain-js.js'; esmToPlainJs.cli();