@jtorm/document-model

1.0.0 • Public • Published

jTorm Document Model

HTML Document wrapper.

Install

npm install @jtorm/document-model

Methods

select

Select an element by CSS selector.

Option Type Description
selector string CSS selector

selectAll

Select all elements by CSS selector.

Option Type Description
selector string CSS selector

set

Select an element with the select method, and if element exists, process the callback.

Option Type Description
selector string CSS selector
fn function Callback function with the element as a parameter

head

Get the head inner HTML of the document.

body

Get the body inner HTML of the document.

html

Get the complete HTML of the document.

Readme

Keywords

none

Package Sidebar

Install

npm i @jtorm/document-model

Weekly Downloads

2

Version

1.0.0

License

GPL-3.0

Unpacked Size

3.9 kB

Total Files

3

Last publish

Collaborators

  • jtorm