1.0.2 • Published 8 months ago

html-to-json-converter-44 v1.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
8 months ago

📍 About The Project

  • This library converts HTML to JSON.

Dependencies

  • TypeScript
  • NodeJS

🚀 Getting Started

This is an example of how you may give instructions on setting up your project locally. To get a local copy up and running, follow these simple example steps.

Prerequisites

This is an example of how to list things you need to use the software and how to install them.

  • node

    brew install node
  • npm

    npm install npm@latest -g

Installation locally

  1. Clone the repo
git clone git@github.com:umairfarooq44/html-to-json-converter.git
  1. Install NPM packages
npm install

Running

To run the Project locally

npm run dev

To run as CLI:

  1. Build the project.
npm run build
  1. Run the command with path to HTML file.
node build index.html (html file path)

🕹 Usage

To use it as library please run

npm install html-to-json-converter-44

Then it can be used

import { htmlToJson } from 'html-to-json-converter-44';

const html = '<div>Hello World</div>';
const json = htmlToJson(html); // {tag: 'div', text: 'Hello World'}
1.0.2

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago