# htmlification

> Convert `plain/text` into html.

Latest version **1.0.0** (published 2015-03-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install htmlification
pnpm add htmlification
yarn add htmlification
bun add htmlification
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2015-03-17 |
| First published | 2015-03-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | hiun |
| Maintainers | hiun |

## Links

- npm: https://www.npmjs.com/package/htmlification
- Repository: https://github.com/hiun/htmlification
- Issues: https://github.com/hiun/htmlification/issues
- npm.io page: https://npm.io/package/htmlification

## Recent versions

- 1.0.0 (latest) — 2015-03-17

## README

#htmlification
Convert `plain/text` into html.

##features
- convert line breaking character (`\r\n`) into `br`.
- convert schema uri (`any://th.in/g`) into clickable `a` tag.
- convert schema less uri into clickable http `a` tag.

##Installation
install via npm

```javascript
npm install htmlification 
```

##examples

```javascript
var toHTML = require('htmlification');

var str = 'Foo http://foo.example.com' +
            '\r\n' +
            'Bar magnet://bar.example.com' +
            '\r\n' +
            'Baz baz://baz.example.com' +
            '\r\n' +
            'qux quz.example.com';

var result = toHTML(str);
console.log(result);
```

result would be

```html
Foo <a href="http://foo.example.com" target="blank">http://foo.example.com</a>
<br>
Bar <a href="magnet://bar.example.com" target="blank">magnet://bar.example.com</a>
<br>
Baz <a href="baz://baz.example.com" target="blank">baz://baz.example.com</a>
<br>
qux<a href="http://quz.example.com" target="blank">quz.example.com</a>
```

##License
MIT

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