get-html-title
v0.0.2
Published
get <title> from html content.
Downloads
162
Readme
get-html-title
Get <title>
content from HTML string.
Installation
npm install get-html-title
Usage
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>title text</title>
</head>
<body>
</body>
</html>
Get title content from above html.
var content = fs.readFileSync(__dirname + "/fixtures/has-multiple-title.html", "utf-8");
getTitle(content)// => "title text"
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
License
MIT