index.js
async function readComponentsMap(path) {
  return new Promise((resolve, reject) => {
    fs.readFile(path, (err, data) => {
      if (err) {
        return resolve({});
      }
      resolve(JSON.parse(data));
    });
  });
}
async function readComponentsMap(path) {
  return new Promise((resolve, reject) => {
    fs.readFile(path, (err, data) => {
      if (err) {
        return resolve({});
      }
      resolve(JSON.parse(data));
    });
  });
}
async function readComponentsMap ( path ) { return new Promise ( ( resolve , reject ) => { fs . readFile ( path , ( err , data ) => { if ( err ) { return resolve ( { } ) ; } resolve ( JSON . parse ( data ) ) ; } ) ; } ) ; }
Reads a component map from the file system.

@param {string} path The path to the file to write to.
@return {Object} The map of components to versions.
Reads a component map from the file system .