Parse HTML into JSON. Himalaya bundles well with Browersify and Webpack. Himalaya transforms HTML into JSON, that's it. Himalaya is synchronous and does not require any complicated callbacks. Himalaya does not cut corners and returns an accurate representation of the HTML supplied. To remove whitespace, post-process the JSON; check out an example script. Himalaya can include the start and end positions of nodes in the parse output. To enable this, you can pass parse the parseDefaults extended with includePositions: true. Himalaya provides a stringify method. The following example parses the HTML to JSON then parses the JSON back into HTML.

Features

  • Synchronous
  • Handles Weirdness
  • Preserves Whitespace
  • Line, column, and index positions
  • Himalaya bundles well with Browersify and Webpack
  • Parse HTML into JSON

Project Samples

Project Activity

See All Activity >

Categories

HTML/XHTML, JSON

License

ISC License

Follow Himalaya

Himalaya Web Site

You Might Also Like
Achieve perfect load balancing with a flexible Open Source Load Balancer Icon
Achieve perfect load balancing with a flexible Open Source Load Balancer

Take advantage of Open Source Load Balancer to elevate your business security and IT infrastructure with a custom ADC Solution.

Boost application security and continuity with SKUDONET ADC, our Open Source Load Balancer, that maximizes IT infrastructure flexibility. Additionally, save up to $470 K per incident with AI and SKUDONET solutions, further enhancing your organization’s risk management and cost-efficiency strategies.
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Himalaya!

Additional Project Details

Programming Language

JavaScript

Related Categories

JavaScript HTML XHTML, JavaScript JSON Software

Registered

2023-05-02