I am using the following code in a Node.js / React project. It works fine but it looks like it could be consolidated a little more using a OO pattern. import projectsData from '../data/index.js';function Project(project) {  this.name = project.name;  this.order = project.order;  this.title = project.title;  this.date = project.date;  this.tags = project.tags;  this.logo = project.logo;  this.html = project.html;  this.agency = project.agency;  this.slides = Object.values(project.slides).map(slide => slide);  this.path = `projects/${this.name}`;  this.route = `/projects/${this.name}`;  this.slidesPath = `/projects/${this.name}/slides/`;  this.hiDefAffix = '@2x';};const all = {};Object.values(projectsData).map(project => all[project.name] = new Project(project));const projects = {  all,  sorted(){ return Object.values(this.all).sort((a, b) => a.order - b.order) },  get(project) {    try {      if (this.all[project]){        return this.all[project];      } else {        throw new Error(`Project ${project} not found.`);      }    } catch (error) {      return false;    }  },  toJSON() {    return JSON.stringify(this.all);  }};export default projects;Basically I have a constructor and an exported object that ends up having a bunch of objects created by the constructor above it. Can these be consolidated in some way?
Exporting a list of projects in Node.JS
javascript;object oriented;node.js;react.js