docs: function pkgInfo(id, basedir) {
      return new Promise(function(resolve) {
          pkgResolve(id, { basedir: basedir }, function(error, result, pkg) {
              if (pkgResolve.isCore(id)) {
                  resolve({
                      name: id,
                      core: true
                  });
              } else if (pkg && pkgResolve.isCore(pkg.name)) {
                  resolve({
                      name: pkg.name,
                      core: true
                  });
              } else if (pkg && !(_.startsWith(id, '.') || _.startsWith(id, '/'))) {
                  const pkgPath = path.resolve(path.dirname(result).split(pkg.name)[0] + '/', pkg.name);
  
                  resolve({
                      name: pkg.name,
                      version: pkg.version,
                      dependencies: pkg.dependencies,
                      path: pkgPath
                  });
              } else {
                  resolve({
                      name: id,
                      path: result
                  });
              }
          });
      });
  }