You should be able to do something like this:
let fs = require 'fs'
let passwd = fs.readFileSync '/etc/passwd' 'utf8'
console.log passwd
The un-nice thing is that the above is untyped - Roy can't know the
types in these modules without you writing a wrapper for it.