html-print-element
TypeScript icon, indicating that this package has built-in type declarations

0.0.5 • Public • Published

Color Picker Temperature

Installing

npm

npm i html-print-element

yarn

yarn html-print-element

Usage

function printHtml({selectorName,printStyle}){

}


1.**selectorName =  id or class**
 -id = '#id'
 -class = '.class'
2.**printStyle = in text format**



Example

import { printHtml } from "html-print-element";



id selector

<div id="test">
  test text
</div>

printHtml(
 {
  selectorElement:"#test",
 }
);


or class selector and printStyle

<div class="test">
  test text
</div>


const printStyle = '.test {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}'

printHtml(
 {
  selectorElement:".test",
  printStyle
 }
);

Package Sidebar

Install

npm i html-print-element

Weekly Downloads

12

Version

0.0.5

License

MIT

Unpacked Size

4.87 kB

Total Files

9

Last publish

Collaborators

  • evilel