Node files

const fs = require('fs').promises

;(async () => {
    const filename = '/tmp/node-file.txt'
    await fs.writeFile(filename, 'test', 'utf8')
    const content = await fs.readFile(filename, 'utf8')
    console.log('Read:', content)
})()