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

Typo: import definitelyNotAHuman and other confusion in the readme? #2

Open
ggorlen opened this issue Mar 12, 2024 · 4 comments
Open

Comments

@ggorlen
Copy link

ggorlen commented Mar 12, 2024

From the readme:

import definitelyNotAHuman from 'path-to-definitely-not-a-robot'

const browser = new definitelyNotAHuman()

Why would we want to call this variable "definitely not a human" (i.e., a robot)? Shouldn't this be import definitelyNotARobot from 'path-to-definitely-not-a-robot'?

Also, path-to-definitely-not-a-robot is usually the actual package name.


I realize that

Be a human pretending to be a robot being a human robot human-being

is an attempt at humor, but it's very confusing. I suggest just stating what the library does simply.

@eng3
Copy link

eng3 commented Mar 12, 2024

Does the name matter?
Regardless, more detailed instructions would be helpful for beginners like myself. It sounds like you are extending puppeteer so this is meant to drop in to replace it.

@ggorlen
Copy link
Author

ggorlen commented Mar 12, 2024

@eng3 Yes, it matters. I'm not extending Puppeteer, I'm just trying to answer your stack overflow question, but I wasn't able to easily determine what the library does or understand how to install/import it.

Beyond the name, the convention is to capitalize constructors, so I'd suggest new DefinitelyNotARobot().

Now that you mention it, extending Puppeteer is the correct way to design a package like this. Hiding browser.launch() as this library does makes it more or less unusable, because being able to specify launch options is a critical piece of functionality that needs to be exposed. It seems to be--my mistake.

@dougwithseismic
Copy link
Owner

dougwithseismic commented Mar 12, 2024 via email

@eng3
Copy link

eng3 commented Mar 12, 2024

@ggorlen I wasnt sure how to install/import it either hence why I asked the question. As for the broader question of why anyone needs this package at all, I don't know. I'm running out of ideas thus thought something like this was worth a try. I didn't want to list the site by name in order to attempt to keep some anonymity due to the nature of this type of thing

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

3 participants