UNPKG

xnr

Version:

Easily, quickly and reliably run a Node.js script from the CLI.

10 lines (9 loc) 305 B
import { transform } from "./lib/index.js"; const transformer = { canInstrument: false, process: (inputCode) => ({ code: inputCode }), processAsync: async (inputCode, filePath) => { return { code: await transform({ code: inputCode, filePath }) }; }, }; export default transformer;