
Security News
NVD Concedes Inability to Keep Pace with Surging CVE Disclosures in 2025
Security experts warn that recent classification changes obscure the true scope of the NVD backlog as CVE volume hits all-time highs.
thredds-catalog-crawler
Advanced tools
A package for crawling THREDDS catalogs, including nested catalogs.
npm install thredds-catalog-crawler --save
Using async/await & modules
import threddsCrawler from 'thredds-catalog-crawler'
async function crawlThredds() {
const catalog = await threddsCrawler('http://something/thredds/catalog/my/catalog.xml')
await catalog.loadAllNestedCatalogs()
const datasets = catalog.getAllChildDatasets()
}
crawlThredds()
Using traditional promises & modules
const threddsCrawler = require('thredds-catalog-crawler')
threddsCrawler('http://something/thredds/catalog/my/catalog.xml')
.then(function (catalog) {
catalog.loadAllNestedCatalogs()
})
This package uses the Fetch API. If you're using this library in NodeJS you'll need a fetch polyfill like isomorphic-fetch or if you want to support older browsers we'd suggest unfetch. You may also need a URL API polyfill such as url-polyfill for older browsers.
import 'isomorphic-fetch'
import 'url-polyfill'
import threddsCrawler from 'thredds-catalog-crawler'
A Catalog
represents the root object in a THREDDS heirarchy. Catalogs can contain datasets, as well as references to other catalogs.
Property | Type | Description |
---|---|---|
url | String | Url of the catalog |
name | String | Name of the catalog |
isLoaded | Boolean | Indicates whether the endpoint has been loaded. If true then datasets and services will be populated, and limited catalog information. If false then most information will be unavailable. |
datasets | Array | An array of datasets found in the catalog |
catalogs | Array | An array of nested catalogs found in the catalog |
services | Object | An object containing the available services for a catalog, organised by service type |
hasDatasets | Boolean | Indicates whether the catalog contains datasets directly |
hasNestedCatalogs | Boolean | Indicates whether the catalog contains nested catalogs |
wmsBase | String | The base url for a WMS service. If no WMS support is available then null |
supportsWms | Boolean | Does a catalog have a WMS service for datasets |
Method | Returns | Description |
---|---|---|
loadAllNestedCatalogs | N/A | Loads all nested catalogs recurrsively |
loadNestedCatalogById(id) | Catalog | Crawls a single nested catalog based on a id string |
getAllChildDatasets | Array[Dataset1, Dataset2...] | Returns a flattened array of datasets from all nested catalogs which have been loaded. |
A Dataset
can contain datasets, as well as references to other catalogs.
Property | Type | Description |
---|---|---|
id | String | An id of the dataset |
name | String | Name of the dataset |
parent | Object | A catalog or another dataset |
urlPath | String | Partial url path of the dataset |
isParentDataset | Boolean | Indicates whether this dataset contains other datasets |
datasets | Array[Dataset] | An array of nested datasets |
wmsUrl | String | A url for the GetCapabilities endpoint for the dataset. Constructed from the dataset and its parent catalog item |
parentCatalog | Catalog | A reference to the datasets parent catalog |
supportsWms | Boolean | Does this dataset have a WMS available |
Method | Returns | Description |
---|---|---|
loadAllNestedCatalogs | N/A | Loads all nested catalogs recurrsively |
0.0.7
module
.FAQs
A module for crawling thredds catalogs
The npm package thredds-catalog-crawler receives a total of 289 weekly downloads. As such, thredds-catalog-crawler popularity was classified as not popular.
We found that thredds-catalog-crawler demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 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
Security experts warn that recent classification changes obscure the true scope of the NVD backlog as CVE volume hits all-time highs.
Security Fundamentals
Attackers use obfuscation to hide malware in open source packages. Learn how to spot these techniques across npm, PyPI, Maven, and more.
Security News
Join Socket for exclusive networking events, rooftop gatherings, and one-on-one meetings during BSidesSF and RSA 2025 in San Francisco.