import fs from 'fs' import { createScript } from '../src/index' import { Compiler } from 'inkjs' const storyText = fs.readFileSync('./story.ink', 'utf-8') const story = new Compiler(storyText).Compile() const main = async() => { const finalString = await createScript(story, { verbose: true }) fs.writeFileSync('./log.txt', finalString) } main()