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

Browser-usable code? #19

Open
josephernest opened this issue Sep 30, 2019 · 1 comment
Open

Browser-usable code? #19

josephernest opened this issue Sep 30, 2019 · 1 comment

Comments

@josephernest
Copy link

josephernest commented Sep 30, 2019

Hello,
I see that fernet.js (as well as fernetBrowser.js) contains require, etc. so this won't be accepted by the browsers if I just do

<script src="fernetBrowser.js"></script>

and copy the fernetBrowser.js file...

Could you just add a few lines in the README to explain how to "compile" / "transpile" / "pack" (?) the code (if needed?), and which tools are required for that.

Thank you in advance.

@josephernest josephernest changed the title Browser usable code? Browser-usable code? Sep 30, 2019
@dikaso
Copy link

dikaso commented Apr 10, 2024

You need to import browser version of package like this:

import fernet from 'fernet/fernetBrowser';

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