
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Palmjs is a simple, lightweight library for embedding maps into your website. It leverages tile-based map rendering and supports custom tile layers, making it perfect for basic mapping needs without the overhead of larger libraries.
$ npm install palmjs
Basic map
<!-- Add element to html where map will be rendered. -->
<div id="map"></div>
// Initialize a new map with the given element id and map options.
new Palmjs('map', {
latitude: 51.5,
longitude: -0.15,
zoom: 14,
});
Custom tile layer
new Palmjs('map', {
latitude: 51.5,
longitude: -0.15,
zoom: 14,
tileLayerUrl:
'https://api.tiles.mapbox.com/v4/mapbox.satellite/{z}/{x}/{y}.png?access_token=[YOUR_TOKEN]',
});
Parameter | Type | Description | Required |
---|---|---|---|
elementId | string | The ID of the container element where the map will be rendered. | Yes |
options | MapOptions | Configuration options for the map (see MapOptions interface). | Yes |
MapOptions Interface
Parameter | Type | Description | Required | Default |
---|---|---|---|---|
latitude | number | The initial latitude of the map. | Yes | |
longitude | number | The initial longitude of the map. | Yes | |
zoom | number | The initial zoom level of the map (must be a positive number). | Yes | |
tileLayerUrl | string | The URL template for the map tiles. Use {x}, {y}, and {z} as placeholders for the tile coordinates and zoom. | No | https://tile.openstreetmap.org/{z}/{x}/{y}.png |
This project is licensed under the MIT License - see the LICENSE.md file for details
0.0.3
FAQs
A lightweight javascript map package
The npm package palmjs receives a total of 0 weekly downloads. As such, palmjs popularity was classified as not popular.
We found that palmjs 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.