Un-minified GAPI project
MIT License
This project aims to make minified GAPI (https://apis.google.com/js/api.js) source code readable and understandable.
api.js
only defines one public method: gapi.load
gapi.load
accepts libraries
and callbackOrConfig
arguments, as documented, but callbackOrConfig
also has undocumented property: config
gapi.client
methods are defined in the client
library that is being loaded by gapi.load
ALL_CAPS
prefixed with __UM__
, like gapi.__UM__SOME_UNIX_TIME_NUMBER
Measured by appending api.js
script, loading client
lib and returning gapi
to the main testing script.
jsdom
- fast (1 second), minor differences from Chromepuppeteer
- fast (1 second), uses Chromeselenium
with headless Chrome - slowest (4 seconds), uses Chromegjstest
- can't build
Conclusion: Use puppeteer
because it's fast and uses Chrome.