html-to-text / node-html-to-text

Advanced html to text converter
Other
1.61k stars 224 forks source link

How to use html-to-text using cdn i.e. via <script> #319

Open JayKaku opened 3 months ago

KillyMXI commented 3 months ago

There are a bunch of CDN services that promise to serve NPM packages:

I haven't had the same use case yet, so I can't provide any support - you have to figure out yourself what works best and how to use it.

Related issue:

JayKaku commented 3 months ago

Tried unpkg and jsdeliver but can't use using a simple <script> tag in HTML. The upkg and jsdelivr aren't using relative file paths (ref: Node Documentation) while importing, as seen below [unpkg example] and jsdelivr package for html-to-text also isn't available using simple <script src="...">

image

Relative paths axios jsdelivr image

@KillyMXI could you check the workflow section under unkg