0.1.1 • Published 2 years ago

comar-ld v0.1.1

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

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.