Socket
Socket
Sign inDemoInstall

ltx

Package Overview
Dependencies
0
Maintainers
5
Versions
60
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ltx

<xml for="JavaScript">


Version published
Weekly downloads
36K
decreased by-7.54%
Maintainers
5
Install size
88.2 kB
Created
Weekly downloads
 

Readme

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

Last updated on 21 Aug 2021

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc