Security News
The Dark Side of Open Source
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
google-maps-api
Advanced tools
Readme
#google-maps-api Load a Google Maps API Object asynchronously. This module will return a Promise. Which will on resolved will return the "google.maps" object.
Or if you prefer you can simply use the callback instead.
This module also includes utility modules to be able to use parts of the maps api quickly:
using via promise
var mapsapi = require( 'google-maps-api' )( 'your api key' );
mapsapi().then( function( maps ) {
//use the google.maps object as you please
});
using via callback
require( 'google-maps-api' )( 'your api key', function( maps ) {
//use the google.maps object as you please
})
including external google maps libraries
require( 'google-maps-api' )( 'your api key', ['places'], function( maps ) {
//the google.maps object will now have the places api (google.maps.places)
})
String | Object
- Your Google Maps API Key or an object of the form { client: 'APIClientName', channel: 'APIClientChannel' }
Array
- Optional array of libraries to load such as [ 'places' ]
function
- Optional callback which will return the google.maps objectReturns: Promise
- When this promise resolves it will return the google.maps object
FAQs
Get up and running with the google maps API quickly
The npm package google-maps-api receives a total of 2,138 weekly downloads. As such, google-maps-api popularity was classified as popular.
We found that google-maps-api demonstrated a not healthy version release cadence and project activity because the last version was released 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
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
Research
Security News
The Socket Research team found this npm package includes code for collecting sensitive developer information, including your operating system username, Git username, and Git email.
Security News
OpenJS is warning of social engineering takeovers targeting open source projects after receiving a credible attempt on the foundation.