
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
google-maps-js-api-loader
Advanced tools
Wrapper for the loading of Google Maps JavaScript API script in the browser
Async loader for google maps api
import Loader from "google-maps-js-api-loader";
await Loader.load({
apiKey: API_KEY,
// ...some other options
});
async static load(options: LoaderOptions, onLoadingStart?: () => void): Promise<void>
Asynchronously loads Google Maps JavaScript API with given options, can be called multiple times, but always returns promise from the first call
Note: it throws an error if google.maps already exists on the first call or if the options are different from the first call
static status: LoaderStatus
Current status of Loader
enum LoaderStatus {
NONE,
LOADING,
LOADED,
ERROR,
}
Options structure is same to @googlemaps/js-api-loader
MIT © Krombik
FAQs
A lightweight JavaScript library for loading the Google Maps JavaScript API
The npm package google-maps-js-api-loader receives a total of 70 weekly downloads. As such, google-maps-js-api-loader popularity was classified as not popular.
We found that google-maps-js-api-loader demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.