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

namor.getDict is not a function #26

Open
jinjo0 opened this issue Feb 20, 2023 · 2 comments
Open

namor.getDict is not a function #26

jinjo0 opened this issue Feb 20, 2023 · 2 comments

Comments

@jinjo0
Copy link

jinjo0 commented Feb 20, 2023

i'm trying to use a custom word list , but for some reason i keep getting this error :
TypeError: namor.getDict is not a function
at Object. ←[90m(C:\Users\bingbong\Tools\subdomains_keyword_generator\←[39mmain.js:11:26←[90m)←[39m
←[90m at Module._compile (node:internal/modules/cjs/loader:1226:14)←[39m
←[90m at Module._extensions..js (node:internal/modules/cjs/loader:1280:10)←[39m
←[90m at Module.load (node:internal/modules/cjs/loader:1089:32)←[39m
←[90m at Module._load (node:internal/modules/cjs/loader:930:12)←[39m
←[90m at Function.executeUserEntryPoint [as runMain] (n

@jsonmaur
Copy link
Owner

What version of Node are you on? And can you post a code example of how you're importing and using the namor module?

@jinjo0
Copy link
Author

jinjo0 commented Feb 23, 2023

nodejs v18.14.0

main.js
/* using a custom directory*/
const dictionaryPath = path.resolve(__dirname, "dictionaries")
const dictionary = namor.getDict("custom", dictionaryPath)

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