Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@targomo/core
Advanced tools
The JavaScript (& TypeScript) API for Targomo's time-based access mapping services.
Note: This library is not yet finished and may be subject to breaking changes. Feel free to use it, though. If you are looking for our stable JS library please go this way.
The Targomo Typescript API is a modern, open-source, isomorphic TypeScript library designed to consume the Targomo services. The project is maintained by Targomo. The lib can also be used in non-typescript environments.
Get your free API key by signing up for a Targomo account
The Targomo API is available in many regions. For all available endpoints, see our availability map
Install via npm (for client or server side use):
npm install @targomo/core
TargomoClient
with your API Key and regionimport { TargomoClient } from '@targomo/core'
const tgmClient = new TargomoClient('<REGION>', '<API KEY>')
const sources = [{
lng: 13.3786431,
lat: 52.4668237,
id: 1
}, {
lng: 52.388166,
lat: 13.120117,
id: 2
}]
const polygons = await tgmClient.polygons.fetch(sources, {
travelType: 'walk', // Either 'walk', 'bike', 'car' or 'transit'
travelEdgeWeights: [300, 600, 900], // Array of distinct travel times in seconds
serializer: 'geojson'
})
TODO: High level documentation of all methods
TODO
Documentation is available at https://targomo.com/developers/guide/, although this still contains the documentation for the r360-js lib, until the docs are finished for this lib.
FAQs
The JavaScript (& TypeScript) API for Targomo's time-based access mapping services.
The npm package @targomo/core receives a total of 1,498 weekly downloads. As such, @targomo/core popularity was classified as popular.
We found that @targomo/core demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.