2.1.1 • Published 8 months ago
@loanlink-nl/cxsd v2.1.1
@loanlink-nl/cxsd
cxsd is a streaming XSD parser and XML parser generator for Node.js and TypeScript.
It retrieves the specified file(s) and generates a Typescript file containing the defintions and a parser based on the widely used fast-xml-parser library.
Usage
# Parsing from local filesystem
cxsd path/to/file.xsd
# Parsing from stdin
cat path/to/file.xsd | cxsd
# Parsing from url
cxsd https://www.example.com/sample-xsd.xsd
# Getting help
cxsd --helpFeatures
- Automatically download and cache to disk all imported .xsd files
- Convert XSD contents to Typescript equivalents
- Imports from remote URLs to imports from local relative paths
- Lists to arrays
- Annotations to JSDoc
- WIP: Strings, numbers and dates to matching primitive types
License
Copyright (c) 2025 LoanLink
based largely on work from BusFaster Ltd and WikiPathways
2.1.1
8 months ago