
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@yandex/ymaps3-web-mercator-projection
Advanced tools
Yandex Maps JS API 3.0 example @yandex/ymaps3-web-mercator-projection
Web Mercator projection package for Yandex JS API.
You can install this package via npm:
npm install --save @yandex/ymaps3-web-mercator-projection
To use Web Mercator projection, just import it:
import {WebMercator} from '@yandex/ymaps3-web-mercator-projection';
const projection = new WebMercator();
console.log(projection.toWorldCoordinates([-180, 90])); // {x: -1, y: 1}
console.log(projection.toWorldCoordinates([-180, 85.051])); // ~ {x: -1, y: 1}
console.log(projection.toWorldCoordinates([90, 0])); // ~ {x: 0.5, y: 0}
console.log(projection.toWorldCoordinates([0, -23.6])); // ~ {x: 0, y: -0.135}
console.log(projection.fromWorldCoordinates({x: -1, y: 1})); // ~ [-180, 85.051]
console.log(projection.fromWorldCoordinates({x: 0.5, y: 0})); // [90, 0]
console.log(projection.fromWorldCoordinates({x: 0, y: -0.135})); // ~ [0, -23.6]
You can use CDN with module loading handler in JS API on your page.
By default ymaps3.import
can load self modules.
Just use ymaps3.registerCdn
and ymaps3.import
:
// register in `ymaps3.import` which CDN to take the package from
ymaps3.import.registerCdn('https://cdn.jsdelivr.net/npm/{package}', '@yandex/ymaps3-web-mercator-projection@latest');
// ...
// import package from CDN
const {WebMercator} = await ymaps3.import('@yandex/ymaps3-web-mercator-projection');
FAQs
Yandex Maps JS API 3.0 example @yandex/ymaps3-web-mercator-projection
The npm package @yandex/ymaps3-web-mercator-projection receives a total of 80 weekly downloads. As such, @yandex/ymaps3-web-mercator-projection popularity was classified as not popular.
We found that @yandex/ymaps3-web-mercator-projection demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers 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
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.