New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

html-print-element

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

html-print-element

html element printing

latest
Source
npmnpm
Version
0.0.5
Version published
Maintainers
1
Created
Source

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
 }
);


Keywords

print

FAQs

Package last updated on 19 Mar 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts