node-cld icon indicating copy to clipboard operation
node-cld copied to clipboard

Safe language detection mode

Open kibertoad opened this issue 2 years ago • 2 comments

Creating errors is a fairly expensive operation in JavaScript (primarily due to stacktrace generation), and it is not really necessary for conveying the fact that language resolution was not successful. It would be great if there was a support for safeDetection options flag which would not throw if detection is not successful, but merely returned an empty language list.

kibertoad avatar Sep 30 '23 09:09 kibertoad

If this proposal is accepted, I can send in a PR!

kibertoad avatar Sep 30 '23 09:09 kibertoad

I second this, safeDetection would be good to have

catalinberta avatar Oct 17 '23 06:10 catalinberta