babel/packages/babel-core/test/fixtures/babel-load-options-async.mjs
2020-08-20 14:51:09 -04:00

14 lines
275 B
JavaScript
Executable File

#!/usr/bin/env node
// Usage:
// babel-load-options-async.js [filename]
import babel from "../../lib/index.js";
const [, , filename, cwd] = process.argv;
(async () => {
process.stdout.write(
JSON.stringify(await babel.loadOptionsAsync({ filename, cwd }))
);
})();