OOP API for interacting with files in Node.js