Do you need to install it, or just serve it? skypack will work for node also. I haven't tried, but I imagine you can do something like
const pkgUrl = 'https://cdn.skypack.dev/date-fns' const servePkg = async () => { const { default: pkg } = await import(pkgUrl); // pkg.method(...) })
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Do you need to install it, or just serve it? skypack will work for node also. I haven't tried, but I imagine you can do something like