An fstream class for creating npm packages