Skip to content

Is there any way to use flatten-js without npm? #110

Answered by alexbol99
momolinus asked this question in Q&A
Discussion options

You must be logged in to vote

Hello, Marcus,

I am so sorry that I missed your question.
I hope you've already found the answer in the examples section of the repository.

You can take it as umd package from unpackage.com

<script src='https://unpkg.com/@flatten-js/core'></script>

or as es6 package with script type="module" tag

<script type="module">
      import {point, circle, segment} from "https://unpkg.com/@flatten-js/core?module";

      // make some construction
</script>

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by momolinus
Comment options

You must be logged in to vote
1 reply
@edemaine
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants