Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Control options and customization of the Google Maps colors, just 1,7 KB.
yarn add cMaps
After installing, include the scripts in html.
<script src="node_modules/cMaps/dist/cMaps.min.js"></script>
<div id="map"></div>
var map = new cMaps(options);
Option | Type | Description | Example | Required |
---|---|---|---|---|
wrapperId | string | Container id map | 'map' | true |
Key | string | Google API Key | 'api_key' | true |
pinLat | number | pin latitude | -23.562353 | true |
pinLng | number | pin latitude | -46.503113 | true |
mapLat | number | map latitude | -23.562353 | true |
mapLng | number | map latitude | -46.503113 | true |
styles | array | google styles | [{},{}] | true |
name | string | Map name | 'cMaps' | false |
icon | string | url to pin the way | 'imgs/pin.png' | false |
zoom | number | Initial zoom map | 16 | false |
zoomControl | boolean | Manual zoom control | true | false |
scrollwheel | boolean | Mouse scroll for zoom | false | false |
mapTypeControl | boolean | Choose the map type in the upper left corner | true | false |
draggable | boolean | If this option is false the map can not be dragged | true | false |
streetView | boolean | Control street view | false | false |
// *Example* Code that was exported from Styled Maps Wizard or Snazzy Maps
var styles = [{"featureType":"all","elementType":"labels","stylers":[{"visibility":"on"}]} ...];
var map = new cMaps({
'name': 'cMap',
'wrapperId':'map',
'pinLat': -23.562353,
'pinLng': -46.503113,
'mapLat': -23.562353,
'mapLng': -46.503113
'styles': styles,
'key': 'YOUR_API_KEY'
});
Use the Styled Maps Wizard or Snazzy Maps to export a JSON with all possible options and include as a parameter to the cMap.
In the example folder has an demonstration of everything working if necessary :)
[3.0.0] - 2017-12-28
FAQs
Control options and customization of the Google Maps colors
The npm package cmaps receives a total of 0 weekly downloads. As such, cmaps popularity was classified as not popular.
We found that cmaps 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.