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

Instructions? #1

Open
shadow7412 opened this issue Aug 11, 2022 · 4 comments
Open

Instructions? #1

shadow7412 opened this issue Aug 11, 2022 · 4 comments

Comments

@shadow7412
Copy link

I cloned and npm i'd - but how do you actually run this project?

@ULTUX
Copy link
Owner

ULTUX commented Aug 22, 2022

Hi,
You can transpile the project into javascript (using typescript) and then run it with node.js, or alternatively you can use ts-node package to immediately start the program.
It's worth to note that this project was made casually and is not actively supported.

@shadow7412
Copy link
Author

shadow7412 commented Aug 22, 2022

Thanks for the reply. Does ts-node work out of the box for you?

This is my output when running npx ts-node src/index.ts from the repository root;

TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for /home/shadow7412/development/open_source/steam-guard-creds-extractor/src/index.ts
    at new NodeError (node:internal/errors:387:5)
    at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:80:11)
    at defaultGetFormat (node:internal/modules/esm/get_format:122:38)
    at defaultLoad (node:internal/modules/esm/load:81:20)
    at nextLoad (node:internal/modules/esm/loader:173:28)
    at ESMLoader.load (node:internal/modules/esm/loader:616:26)
    at ESMLoader.moduleProvider (node:internal/modules/esm/loader:472:22)
    at new ModuleJob (node:internal/modules/esm/module_job:63:26)
    at ESMLoader.#createModuleJob (node:internal/modules/esm/loader:491:17)
    at ESMLoader.getModuleJob (node:internal/modules/esm/loader:449:34) {
  code: 'ERR_UNKNOWN_FILE_EXTENSION'

@ULTUX
Copy link
Owner

ULTUX commented Aug 25, 2022

Try using ts-node-esm command: ts-node-esm src/index.ts.

@shadow7412
Copy link
Author

This didn't work either by the way.

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