import fs from "fs" ; import draw from "./front/draw" ; const main = async ( ) : Promise < void > => { const app = { } ; app . router = { get : ( ) => { } , } ; app . draw = await draw ( app ) ; const buf = await app . draw . draw ( "rnbqkbnrpppppppp8888PPPPPPPPRNBQKBNRw" ) ; fs . writeFileSync ( "test.png" , buf ) ; } ; main ( ) ;