Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
JayKaku opened this issue Aug 2, 2024 · 2 comments
Open

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

JayKaku opened this issue Aug 2, 2024 · 2 comments

Comments

@JayKaku
Copy link

JayKaku commented Aug 2, 2024

No description provided.

@KillyMXI
Copy link
Member

KillyMXI commented Aug 2, 2024

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
Copy link
Author

JayKaku commented Aug 3, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants