Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
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
A readable stream for an in-memory byte array.
Parses a BSB chart from a readable (e.g. file) stream.
Parses the text segment of a BSB chart and returns well-known metadata, if present.
Writes the RLE encoded raster data of a BSB chart to a bitmap.
A readable stream for an in-memory byte array.
The constructor for the MemoryStream
Param | Description |
---|---|
contents | The array from which to read. |
options | An optional set of readable stream options. |
Parses a BSB chart from a readable (e.g. file) stream.
Kind: global function
Returns: A BSB chart.
Param | Description |
---|---|
stream | The stream from which to read the chart data. |
Parses the text segment of a BSB chart and returns well-known metadata, if present.
Kind: global function
Returns: The metadata parsed from the chart.
Param | Description |
---|---|
textSegment | The text entries of the chart. |
Writes the RLE encoded raster data of a BSB chart to a bitmap.
Kind: global function
Param | Description |
---|---|
rasterSegment | The rows of raster data for the chart. |
palette | The palette from which to obtain pixel values. |
buffer | The bitmap buffer in which to write the chart raster data. |
bufferWidth | The width of the bitmap buffer. |
MIT (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.
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.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.