code: function createAPIFiles(packageName, srcPath) {
      
      var config = path.join(srcPath, '/tsconfig.json');
      var output = path.join(destDir, packageName, 'api');
      var file = (packageName === "fast-animation") ? path.join(srcPath, '/lib/index.ts') : path.join(srcPath, '/src/index.ts');
  
      var typedocCmd = os.platform() == 'win32' ? 'typedoc.cmd' : 'typedoc';
      var typedocPath = path.join('node_modules', '.bin', typedocCmd);
  
      const typedoc = spawn(typedocPath, // the local TypeDoc installation is needed for the markdown theme to work
          [
              '--tsconfig', config,
              '--excludeNotExported',
              '--out', output, file,
              '--theme', "markdown"
          ]);
  
      typedoc.on('close', code => {
          if (code) {
              console.log(chalk.red(`${packageName} - TypeDoc API docs not generated, error code: ${code}`));
          } else {
              console.log(`${packageName} - TypeDoc API docs generated`)
              addHeaderToReadme(packageName);
              addAPILinkToReadme(packageName);
          }
      });
  
      // if set to true, will print detailed build output for typedoc process
      // useful for debugging
      if (verbose) {
          typedoc.stdout.on('data', (data) => {
              console.log(`${data}`);
          });
      }
  
      typedoc.on('error', (err) => {
          console.log(chalk.red(err));
      });
  
  }
docs: Uses TypeDoc process to generate API docs for a given package
  Stores them in the docs/en/packages folder