1.0.4 • Published 4 years ago

gapi-browser v1.0.4

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

gapi-browser

Promise based package that is helping attaching actual google api script in browser

Install

npm i gapi-browser

Using

import { getGapi } from 'gapi-browser';

getGapi.then(gapi => {
  console.log(gapi, gapi.load);
});

How

Google script is added directly to HEAD or BODY tag

header script

Promise is called ass soon as possible

console