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

Add ability to invert test #202

Closed
funnylookinhat opened this issue Jun 27, 2022 · 2 comments
Closed

Add ability to invert test #202

funnylookinhat opened this issue Jun 27, 2022 · 2 comments

Comments

@funnylookinhat
Copy link

Thank you for creating and maintaining this package - it is incredibly useful!

I've encountered a unique situation that I don't think is currently supported by shx (but it supported by shelljs).

I can test if a file or directory exists with the test command:

shx test -f "file"
shx test -d "directory"

But I cannot do the opposite (check if it does not exist). ShellJS supports the negation of a test, but I'm not seeing a way to do it with shx.

https://github.com/shelljs/shelljs#testexpression

@nfischer
Copy link
Member

nfischer commented Jul 5, 2022

Looks like this could be a duplicate of issue #173?

@nfischer nfischer closed this as completed Jul 5, 2022
@funnylookinhat
Copy link
Author

Ah yes - thank you for catching that. Sorry for the duplicate issue. :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants