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.
nautical-charts
Advanced tools
A pure JavaScript library for reading nautical chart files. In particular, for reading BSB-formatted (.bsb
and .kap
) files.
$ npm install nautical-charts --save
This API is in considerable flux, subject to drastic change, and therefore has not been fully documented.
readChart(contents: Uint8Array): KapChart | undefined
Parses a chart from the contents of a buffer.
writeRasterSegment(rasterSegment: KapRasterRow[], palette: KapPalette, buffer: Buffer, bufferWidth: number): void
Writes the (run-length-encoded, or RLE format) raster segment of a chart to a buffer in bitmap (i.e. RGBA) format. This function is useful for converting the chart to a more accessable format (such as PNG, via pngjs).
These types are in considerable flux, subject to drastic change, and therefore have not been fully documented.
interface KapChart
A parsed BSB chart.
readonly metadata?: KapMetadata;
Metadata related to the chart specifically parsed from the text segment.
readonly rasterSegment?: KapRasterRow[];
The rows that make up the raster segment of the chart.
readonly textSegment?: KapTextEntry[];
The partially-processed entries that make up the text segment.
The MIT License (see LICENSE.md)
FAQs
A library for reading nautical chart files.
We found that nautical-charts 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.