How to verify the compressed signature in Bitcoin? It is 138 long in hex I am using the bicoinjs-message npm module for signature verification.
I learned that there are few signatures which are of length 138 in hexadecimal.
When I tried to verify such a signature it is throwing an error:

Error: Invalid signature length

How to verify the compressed signature?
I think there is a lib in ruby, bitcoin-ruby 0.0.20, which verifies it, but I don't know ruby.
If you have the bitcoin core software, you should be able to use the CLI to verify signatures using the verifymessage command. Some wallet software also has this functionality.