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)

17 lines (15 loc) 428 B
//! esm-to-plain-js v1.1.4 ~~ https://github.com/center-key/esm-to-plain-js ~~ MIT License export type Settings = { cd: string; }; export type Result = { origin: string; dest: string; length: number; duration: number; }; declare const esmToPlainJs: { transform(sourceFile: string, targetFile: string, options?: Partial<Settings>): Result; reporter(result: Result): void; }; export { esmToPlainJs };