# get-md-title

> get title from markdown article

Latest version **1.0.4** (published 2015-08-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install get-md-title
pnpm add get-md-title
yarn add get-md-title
bun add get-md-title
```

## 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.4 |
| Published | 2015-08-11 |
| First published | 2015-07-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 7 |
| Author | Vladimir Starkov |
| Maintainers | iamstarkov |
| Keywords | md, markdown, commonmark, article, title |

## Links

- npm: https://www.npmjs.com/package/get-md-title
- Repository: https://github.com/iamstarkov/get-md-title
- Homepage: https://github.com/iamstarkov/get-md-title#readme
- Issues: https://github.com/iamstarkov/get-md-title/issues
- npm.io page: https://npm.io/package/get-md-title

## Dependencies (2)

- [trim-html-tag](https://npm.io/package/trim-html-tag.md) ^1.0.3
- [commonmark-helpers](https://npm.io/package/commonmark-helpers.md) ^0.4.0

## Alternatives

- [@mdxeditor/editor](https://npm.io/package/@mdxeditor/editor.md) — 962.4K weekly downloads
- [mmdb-lib](https://npm.io/package/mmdb-lib.md) — 680.9K weekly downloads
- [playcanvas](https://npm.io/package/playcanvas.md) — 36.2K weekly downloads
- [@glw907/cairn-cms](https://npm.io/package/@glw907/cairn-cms.md) — 967 weekly downloads
- [markdown-to-confluence](https://npm.io/package/markdown-to-confluence.md) — 103 weekly downloads

## Recent versions

- 1.0.4 (latest) — 2015-08-11
- 1.0.3 — 2015-08-10
- 1.0.2 — 2015-08-05
- 1.0.1 — 2015-08-05
- 1.0.0 — 2015-07-29

## README

# get-md-title

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

> get title from markdown article

## Install

    npm install --save get-md-title

## Usage

```js
import getTitle from 'get-md-title';

const input = `
# awesome *heading*

# second heading

paragragh`;

getTitle(input).text; // awesome heading
getTitle(input).html; // awesome <em>heading</em>
getTitle(input).node; // AST node, see commonmark API
getTitle('');         // undefined ¯\_(ツ)_/¯
```

## API

### getTitle(input)

#### input

*Required*  
Type: `String`

Markdown string.

## Related

* [get-md-content][get-md-content] - get content from markdown article
* [get-md-date][get-md-date] - get date from markdown article
* [get-md-desc][get-md-desc] - get description from markdown article
* [get-md-image][get-md-image] - get image from markdown article

## License

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


[npm-url]: https://npmjs.org/package/get-md-title
[npm-image]: https://img.shields.io/npm/v/get-md-title.svg?style=flat-square

[travis-url]: https://travis-ci.org/iamstarkov/get-md-title
[travis-image]: https://img.shields.io/travis/iamstarkov/get-md-title.svg?style=flat-square

[coveralls-url]: https://coveralls.io/r/iamstarkov/get-md-title
[coveralls-image]: https://img.shields.io/coveralls/iamstarkov/get-md-title.svg?style=flat-square

[depstat-url]: https://david-dm.org/iamstarkov/get-md-title
[depstat-image]: https://david-dm.org/iamstarkov/get-md-title.svg?style=flat-square

[get-md-content]: https://github.com/iamstarkov/get-md-content
[get-md-date]: https://github.com/iamstarkov/get-md-date
[get-md-desc]: https://github.com/iamstarkov/get-md-desc
[get-md-image]: https://github.com/iamstarkov/get-md-image

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