You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What about a "booleanTag" type, which would match value against variable presence only ?
I mean having a simple (VAR != null) (loose null or undefined, roughly means "presence") check that would allow anything, (including 0 or "") as value to be truthy. Acting like a --param tag and simpler booleans.
This shouldn't be mixed with the true boolean type though, IMHO, as they are pretty different
I personally don't think this is generally useful enough to be included with the library, although I think it should be possible to add to your own project as a custom validator. Thanks for the suggestion though!
What about a "booleanTag" type, which would match value against variable presence only ?
I mean having a simple
(VAR != null)
(loosenull
orundefined
, roughly means "presence") check that would allow anything, (including0
or""
) as value to be truthy. Acting like a--param
tag and simpler booleans.This shouldn't be mixed with the true boolean type though, IMHO, as they are pretty different
!!VAR
VAR="" node script.js
VAR=0 node script.js
VAR= node script.js
node script.js
The text was updated successfully, but these errors were encountered: