Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
@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.
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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.