# @aldinh777/cml-parser

> CML (Compacted Markup Language) Parser

Latest version **0.6.0** (published 2024-01-05) · ISC license · 0 weekly downloads

## Install

```sh
npm install @aldinh777/cml-parser
pnpm add @aldinh777/cml-parser
yarn add @aldinh777/cml-parser
bun add @aldinh777/cml-parser
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.6.0 |
| Published | 2024-01-05 |
| First published | 2022-08-17 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 12.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | aldinh777 |
| Maintainers | aldinh777 |

## Links

- npm: https://www.npmjs.com/package/@aldinh777/cml-parser
- npm.io page: https://npm.io/package/@aldinh777/cml-parser

## Recent versions

- 0.6.0 (latest) — 2024-01-05
- 0.5.4 — 2024-01-03
- 0.5.3 — 2022-10-15
- 0.5.2 — 2022-08-19
- 0.5.1 — 2022-08-17
- 0.5.0 — 2022-08-17

## README

# What is CML?
CML (Compacted Markup Language) is another attempt to compact html or xml document in general by triming anything as much as possible but still makes everything consistent and keep familiarities with usual html or xml tags

Here a sample CML code

```
div <
    h1 <This is Title>
    p <
        This is Paragraph br<>
        These are b<Bold> i<Italic> u<Underline> Text br<>
        These are b<i<u<Bolditalicunderline>>> Text br<>
    >
    button class="btn" type="button" <Press Me>
>

```
This is equal to html tag
```
<div>
    <h1>This is Title</h1>
    <p>
        This is Paragraph <br/>
        These are <b>Bold</b> <i>Italic</i> <u>Underline</u> Text <br/>
        These are <b><i><u>Bolditalicunderline</u></i></b> Text <br/>
    </p>
    <button class="btn" type="button">Press Me</button>
</div>
```
This inovation successfully reduce almost half the size of the real html document!!!

---
_Source: https://npm.io/package/@aldinh777/cml-parser · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
