
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
ntrip-sourcetable-parser
Advanced tools
> TypeScript utility to fetch and decode NTRIP sourcetables (e.g., from GNSS casters)
TypeScript utility to fetch and decode NTRIP sourcetables (e.g., from GNSS casters)
positionz-rt.linz.govt.nz:2101
)npm install ntrip-sourcetable-parser
import { ntripSourcetableParser } from 'ntrip-sourcetable-parser'
const options = {
host: 'positionz-rt.linz.govt.nz',
port: 2101,
}
// Example #1 - Then...Catch
ntripSourcetableParser(options)
.then((mountpoints) => {
console.log(mountpoints)
})
.catch(console.error)
// Example #2 - Async/Await
async function fetchMountpoints() {
try {
const mountpoints = await ntripSourcetableParser(options)
console.log(mountpoints)
} catch (error) {
console.error(error)
}
}
fetchMountpoints()
// Example #3 - Filtering Results
async function fetchAndFilterMountpoints() {
try {
const mountpoints = await ntripSourcetableParser(options)
const freeMountpoints = mountpoints.filter((mp) => !mp.fee)
console.log('Free mountpoints:', freeMountpoints)
} catch (error) {
console.error('Error fetching or filtering mountpoints:', error)
}
}
fetchAndFilterMountpoints()
// Example #4 - Graceful Error Handling
async function fetchWithGracefulErrorHandling() {
try {
const mountpoints = await ntripSourcetableParser(options)
console.log('Successfully fetched mountpoints:', mountpoints)
} catch (error) {
if (error.message.includes('network')) {
console.error('Network error occurred. Please check your connection.')
} else {
console.error('An unexpected error occurred:', error)
}
}
}
fetchWithGracefulErrorHandling()
// Example #5 - Chaining Multiple Async Calls
async function fetchAndProcessMountpoints() {
try {
const mountpoints = await ntripSourcetableParser(options)
const processedMountpoints = mountpoints.map((mp) => ({
...mp,
description: `${mp.mountpoint} (${mp.country})`,
}))
console.log('Processed mountpoints:', processedMountpoints)
} catch (error) {
console.error('Error processing mountpoints:', error)
}
}
fetchAndProcessMountpoints()
// Example #6 - Using with Custom Configuration
async function fetchWithCustomConfig() {
const customOptions = {
host: 'example-rtk-caster.com',
port: 8080,
username: 'user',
password: 'pass',
position: { lat: 40.7128, lon: -74.006 },
version: '2.0',
}
try {
const mountpoints = await ntripSourcetableParser(customOptions)
console.log('Mountpoints from custom caster:', mountpoints)
} catch (error) {
console.error('Error fetching from custom caster:', error)
}
}
fetchWithCustomConfig()
npm install
npm run build # Compile TypeScript
npm run docs # Generate documentation in ./docs
npm run test # Test
npm run test:coverage # Test with Coverage
We welcome contributions! To add a new feature, please use a branch name in the format:
feature/{name-of-your-feature}
bugfix/{name-of-your-feature}
git clone https://github.com/your-username/ntrip-sourcetable-parser.git
git checkout -b feature/{name-of-your-feature}
npm run test
git add .
git commit -m "Feature {PR# }: Add <description of your feature>"
FAQs
> TypeScript utility to fetch and decode NTRIP sourcetables (e.g., from GNSS casters)
The npm package ntrip-sourcetable-parser receives a total of 2 weekly downloads. As such, ntrip-sourcetable-parser popularity was classified as not popular.
We found that ntrip-sourcetable-parser demonstrated a healthy version release cadence and project activity because the last version was released less than 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
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.