get-title-markdown

2.0.1 • Public • Published

get-title-markdown Build Status

Get # title content from Markdown string.

HTML Version : azu/get-html-title

Installation

npm install get-title-markdown

Usage

test.md

# Title
 
test text

Get title content from above markdown.

var getTitle = require("get-title-markdown");
var content = fs.readFileSync(__dirname + "/test.md", "utf-8");
getTitle(content); // => "Title"

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i get-title-markdown

Weekly Downloads

2

Version

2.0.1

License

MIT

Last publish

Collaborators

  • azu