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

ltx

Package Overview
Dependencies
Maintainers
5
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ltx

<xml for="JavaScript">

  • 2.9.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
49K
increased by5.24%
Maintainers
5
Weekly downloads
 
Created
Source

ltx

JavaScript XML library

build status js-standard-style

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
sax-js43,058
libxmljs56,763
saxes62,246
node-xml81,980
node-expat72,720
ltx/lib/parsers/ltx490,593

From ltx/benchmarks/parsers.js, higher is better. Node.js v10.11.0 - i5-2520M

Benchmark

npm run benchmark

Test

npm install
npm test

FAQs

Package last updated on 02 Oct 2019

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