vamtiger-get-body-inner-html
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

VAMTIGER Get Body Inner HTML

VAMTIGER Get Body Inner HTML will return the title for defined HTML document text

Installation

VAMTIGER Get Body Inner HTML can be installed using npm or yarn:

npm i --save vamtiger-get-body-inner-html

or

yarn add vamtiger-get-body-inner-html

Usage

Import or require a referece to VAMTIGER Get Body Inner HTML:

import getBodyInnerHtml from 'vamtiger-get-body-inner-html';

or

const getBodyInnerHtml = require('vamtiger-get-body-inner-html').default;

VAMTIGER Get Body Inner HTML can then be used to test whether a defined input string contains a HTML Title:

const getBodyInnerHtml = require('vamtiger-get-body-inner-html').default;
 
const html = `
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>
        Some HTML Title
    </title>
</head>
<body>
    <div>
        Some HTML body inner HTML
    </div>
</body>
</html>
`;
const bodyInnerHtml = getBodyInnerHtml({ html });
/*    <div>
 *        Some HTML body inner HTML
 *    </div>
 */

Package Sidebar

Install

npm i vamtiger-get-body-inner-html

Weekly Downloads

2

Version

0.0.4

License

MIT

Unpacked Size

13.3 kB

Total Files

24

Last publish

Collaborators

  • vamtiger-project