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

Can I use this library in deno? If so, how would I go about it? #379

Open
Hugos68 opened this issue Feb 15, 2023 · 2 comments
Open

Can I use this library in deno? If so, how would I go about it? #379

Hugos68 opened this issue Feb 15, 2023 · 2 comments

Comments

@Hugos68
Copy link

Hugos68 commented Feb 15, 2023

I'm building a chess application using chessjs on the client and need the same logic on my serverless function, the serverless function is running deno and i still want to use this package, is this possible?

@jhlywa
Copy link
Owner

jhlywa commented Feb 18, 2023

Good question @Hugos68. I don't have any experience with any of the new JS runtimes (deno and bun). Maybe you can give this a try and report your findings?

@Hugos68
Copy link
Author

Hugos68 commented Feb 20, 2023

Good question @Hugos68. I don't have any experience with any of the new JS runtimes (deno and bun). Maybe you can give this a try and report your findings?

Alright, so I've successfully used this library with Deno. I used import { Chess } from "https://esm.sh/[email protected]"; to test it and it works fine. One thing I noticed while testing was that when exporting to Pgn between the last header and * there wasn't a new line. This caused the reading of the export pgn to fail which seems rather strange to me. Not sure if this is related to the beta version or not. Besides the parsing I have yet to notice any problems running Chessjs on deno, thanks for this amazing library!

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