Add ability to invert test
funnylookinhat opened this issue · 2 comments
funnylookinhat commented
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.
funnylookinhat commented
Ah yes - thank you for catching that. Sorry for the duplicate issue. :-)