# trim-html-tag

> trim html tag from input

Latest version **1.0.5** (published 2015-08-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install trim-html-tag
pnpm add trim-html-tag
yarn add trim-html-tag
bun add trim-html-tag
```

## 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.5 |
| Published | 2015-08-29 |
| First published | 2015-07-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Vladimir Starkov |
| Maintainers | iamstarkov |
| Keywords | html, trim, helpers |

## Links

- npm: https://www.npmjs.com/package/trim-html-tag
- Repository: https://github.com/iamstarkov/trim-html-tag
- Homepage: https://github.com/iamstarkov/trim-html-tag#readme
- Issues: https://github.com/iamstarkov/trim-html-tag/issues
- npm.io page: https://npm.io/package/trim-html-tag

## Dependencies (1)

- [ramda](https://npm.io/package/ramda.md) ^0.17.1

## Alternatives

- [@tsparticles/shape-image](https://npm.io/package/@tsparticles/shape-image.md) — 303.7K weekly downloads
- [@tsparticles/shape-line](https://npm.io/package/@tsparticles/shape-line.md) — 233.7K weekly downloads
- [stringify-attributes](https://npm.io/package/stringify-attributes.md) — 58.6K weekly downloads
- [mobile-drag-drop](https://npm.io/package/mobile-drag-drop.md) — 46.3K weekly downloads
- [@comunica/actor-rdf-parse-html](https://npm.io/package/@comunica/actor-rdf-parse-html.md) — 29.2K weekly downloads

## Recent versions

- 1.0.5 (latest) — 2015-08-29
- 1.0.4 — 2015-07-29
- 1.0.3 — 2015-07-29
- 1.0.1 — 2015-07-28
- 1.0.0 — 2015-07-28
- 0.0.1 — 2015-07-28

## README

# trim-html-tag

[![NPM version][npm-image]][npm-url]
[![Build Status][travis-image]][travis-url]
[![Coveralls Status][coveralls-image]][coveralls-url]
[![Dependency Status][depstat-image]][depstat-url]

> trim html tag from input

## Install

    npm install --save trim-html-tag

## Usage

```js
import trimTag from 'trim-html-tag';

trimTag('<p> trimP </p>\n');    // trimP
trimTag('<h1> trimH1 </h1>\n'); // trimH1
trimTag('<h1 class="asd"> trimH1 </h1>\n'); // trimH1
trimTag('<p>stringified <em>stay here</em></h1>\n'); // stringified <em>stay here</em>

trimTag();       // undefined ¯\_(ツ)_/¯
trimTag('some'); // some
```

## API

### trimTag(input)

#### input

*Required*  
Type: `String`

One stringified HTML node, from which you want to trim the tag (e.g. `<p>inside</p>` or `<h1>also inside</h1>`).

## License

MIT © [Vladimir Starkov](https://iamstarkov.com)

[npm-url]: https://npmjs.org/package/trim-html-tag
[npm-image]: https://img.shields.io/npm/v/trim-html-tag.svg?style=flat-square

[travis-url]: https://travis-ci.org/iamstarkov/trim-html-tag
[travis-image]: https://img.shields.io/travis/iamstarkov/trim-html-tag.svg?style=flat-square

[coveralls-url]: https://coveralls.io/r/iamstarkov/trim-html-tag
[coveralls-image]: https://img.shields.io/coveralls/iamstarkov/trim-html-tag.svg?style=flat-square

[depstat-url]: https://david-dm.org/iamstarkov/trim-html-tag
[depstat-image]: https://david-dm.org/iamstarkov/trim-html-tag.svg?style=flat-square

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