UNPKG

putout

Version:

🐊 Pluggable and configurable code transformer with built-in ESLint, Babel and support of js, jsx, typescript, flow, markdown, yaml and json

13 lines (9 loc) 241 B
import process from 'node:process'; const {stdout} = process; const write = stdout.write.bind(stdout); const noop = () => {}; export const createWrite = (parentPort) => { if (!parentPort) return write; return noop; };