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

CDN #22

Open
Zenahr opened this issue Jul 9, 2022 · 6 comments
Open

CDN #22

Zenahr opened this issue Jul 9, 2022 · 6 comments

Comments

@Zenahr
Copy link

Zenahr commented Jul 9, 2022

Any option to use the library via CDN or as a minified JS file? (in other words: non-NPM setups)

@jasonsturges
Copy link
Owner

@Zenahr Hi, been wanting to explore this but haven't gotten around to it.

You could use unpkg, which would provide unminified UMD build (2.9k):
https://unpkg.com/[email protected]/dist/browser/lunarphase-js..js

Let me see if I can provider something better in the near future.

@Zenahr Zenahr closed this as completed Jul 12, 2022
@jasonsturges
Copy link
Owner

Going to reopen this as a reminder to complete this task - I've been meaning to do this for some time.

@jasonsturges jasonsturges reopened this Jul 13, 2022
@marcthayer
Copy link

Found my way here as well since I was hoping to use the library but am also in a more barebones environment without access to NPM.

@jasonsturges
Copy link
Owner

@marcthayer Hi, yeah - haven't worked on this, but I think the unpkg works in a script tag?

https://unpkg.com/[email protected]/dist/browser/lunarphase-js..js

@jasonsturges
Copy link
Owner

@jasonsturges
Copy link
Owner

Usage with esm.sh:

import { Moon } from "https://esm.sh/lunarphase-js";
Moon.lunarAge();

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

3 participants