comar-ld
v0.1.1
Published
Requires node 14.13.1 or better.
Downloads
3
Readme
Hello
Requires node 14.13.1 or better.
npm i -g comar-ld
Examples
comar-ld https://slashdot.org/ && echo "Language matches, all good."
comar-ld https://parcelsapp.com/en || echo "Language not declared in html, no match."
comar-ld https://www.languagenext.com/blog/porque-espanol-tan-popular/ || echo "Declared language doesn't match detected language."
In other words, use &&
if you expect a match and want to run another command, and use ||
if you want to run a function when language doesn't match or isn't declared in the html.