# html-typography-tags

> This library was generated with [Nx](https://nx.dev).

Latest version **5.3.0** (published 2023-03-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install html-typography-tags
pnpm add html-typography-tags
yarn add html-typography-tags
bun add html-typography-tags
```

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 5.3.0 |
| Published | 2023-03-12 |
| First published | 2022-12-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 23.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Arthur Tkachenko, Yuriy |
| Maintainers | arthur.tkachenko |

## Links

- npm: https://www.npmjs.com/package/html-typography-tags
- npm.io page: https://npm.io/package/html-typography-tags

## Dependencies (1)

- [stringify-attributes](https://npm.io/package/stringify-attributes.md) 3.0.0

## Recent versions

- 5.3.0 (latest) — 2023-03-12
- 5.0.0 — 2023-03-04
- 4.1.0 — 2023-02-22
- 4.0.0 — 2023-02-19
- 3.2.0 — 2022-12-30
- 3.1.0 — 2022-12-30
- 3.0.1 — 2022-12-30
- 2.2.0 — 2022-12-25
- 2.1.0 — 2022-12-25
- 2.0.0 — 2022-12-25
- 1.3.0 — 2022-12-21
- 1.2.0 — 2022-12-21
- 1.1.0 — 2022-12-21
- 1.0.0 — 2022-12-20
- 0.2.0 — 2022-12-20
- … 1 more at https://npm.io/package/html-typography-tags/versions

## README

# html-typography-tags

This library was generated with [Nx](https://nx.dev).

## Building

Run `nx build html-typography-tags` to build the library.

## Running unit tests

Run `nx test html-typography-tags` to execute the unit tests via [Jest](https://jestjs.io).


- [ ] TODO: To add examples from the past version to the readme 


button.js

div.js

heading-nmtg.js

heading.js

headingOne.js

image.js

imageLink.js

italic.js

link.js

list.js

listItem.js

paragraph.js

strong.js

https://github.com/sindresorhus/create-html-element


```

const paragraphComponent = (params) => {
  if (typeof params != 'object') {
    customError.add('"params" is not "object"');
  }

  if (typeof params.attributes == '') {
    customError.add('empty attributes');
  }

  if (typeof params.content == '') {
    customError.add('empty content');
  }

  const { attributes, content } = params;

  return `<p ${attributes}>${content}</p>`;
};
```

```
const buttonComponent = (params) => {
  const { id, href, text } = params;
  const error = new Errors('contentButton');

  if (id == '') {
    error.add('No id button');
  }
  if (href == '') {
    error.add('No href button');
  }
  if (text == '') {
    error.add('No text button');
  }

  return buttonMainBlock(id, href, text);
};
```

```
export default function (params) {
  const { hrefTitle, idTitle, textTitle } = params;
  const error = new Errors('contentTitleText');

  if (hrefTitle == '') {
    error.add('No hrefTitle');
  }
  if (idTitle == '') {
    error.add('No idTitle');
  }
  if (textTitle == '') {
    error.add('No textTitle');
  }

  return headingMainBlock(hrefTitle, idTitle, textTitle);
}
```

---
_Source: https://npm.io/package/html-typography-tags · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
