Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

detect CPUID using JavaScript #63

Open
adrelanos opened this issue Jul 28, 2022 · 3 comments
Open

detect CPUID using JavaScript #63

adrelanos opened this issue Jul 28, 2022 · 3 comments

Comments

@adrelanos
Copy link

Could you please add a test using https://github.com/streamich/cpuid that shows CPUID information?

@plaperdr
Copy link
Contributor

Hi Patrick!
Unfortunately, it seems to me this is something that can only be done on the server side as it relies on an NPM module whch itself relies on LibCPUID. It does not seem possible to me to execute that in a browser as the browser does not have access to this information.

@adrelanos
Copy link
Author

Hi Pierre, thank you for your consideration!

In streamich/cpuid#1 the developer is saying that this is possible with pure JS, i.e. without nodejs, but requires code modifications.

@adrelanos
Copy link
Author

Maybe I am reading this wrong...

@streamich

you just need a way to execute machine code from JavaScript.

I guess that's the critical part.

@plaperdr

It does not seem possible to me to execute that in a browser as the browser does not have access to this information.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants