import { readFileSync } from "fs" ; import { format } from "prettier" ; import { convertCssForEmotion } from "./lib/convertCssForEmotion" ; const convertedCss = convertCssForEmotion ( readFileSync ( "/dev/stdin" ) . toString ( ) ) ; console . log ( format ( convertedCss . replace ( /^injectGlobal/m , "css" ) , { parser : "typescript" , tabWidth : 4 , } ) . replace ( /^css/m , "injectGlobal" ) ) ;