Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ltx

Package Overview
Dependencies
Maintainers
5
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ltx

<xml for="JavaScript">

  • 3.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
49K
increased by6.93%
Maintainers
5
Weekly downloads
 
Created
Source

ltx

JavaScript XML library

ltx is a fast XML builder, parser, serialization and manipulation library for JavaScript.

The builder is a convenient and succinct API to build XML documents represented in memory as JavaScript primitives that can be serialized to XML strings.

The parser can parse XML documents or streams and support multiple parsers.

Features:

  • succinct API to build and manipulate XML objects
  • parse XML strings
  • parse XML streams
  • multiple parser backends
  • JSX compatible (with ltx.createElement pragma)
  • tagged template support ltx`<foo bar="${baz}">`

Install

npm install ltx

Parsers

By default ltx uses its own parser which is the fastest but doesn't support advanced XML features. ltx supports third party parsers when such features are needed.

parserops/secJSstream
node-xml22,292
libxmljs48,116
node-expat63,805
sax-js79,375
saxes168,263
ltx/src/parsers/ltx527,728

From ltx/benchmarks/parsers.js, higher is better. Node.js v14.17.0 - AMD Ryzen 9 5900HX

Benchmark

npm run benchmark

Test

npm install
npm test

FAQs

Package last updated on 12 Dec 2024

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc