Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Language detection for Javascript. Based on the CLD2 (Compact Language Detector) library from Google. Highly optimized for space and speed. Runs about 10x faster than other libraries. Detects over 160 languages. Full test coverage. Runs on Linux, OS X, an
Language detection for Javascript. Based on the CLD2 (Compact Language Detector) library from Google.
Highly optimized for space and speed. Runs about 10x faster than other libraries. Detects over 160 languages. Full test coverage. Runs on Linux, OS X, and Windows.
$ npm install cld
require('cld').detect('This is a language recognition example', function(err, result) {
console.log(result);
});
var text = 'Това е пример за разпознаване на Български език';
var options = {
isHTML : false,
languageHint : 'BULGARIAN',
encodingHint : 'ISO_8859_5',
tldHint : 'bg',
httpHint : 'bg'
};
require('cld').detect(text, options, function(err, result) {
console.log(result);
});
Set to true if the string contains HTML tags
Pass a LANGUAGES key or value as a hint
Pass an ENCODINGS value as a hint
Pass top level domain as a hint
Pass an HTTP "Content-Encoding" value as a hint
Once the module has been installed, the underlying C source will remain in the deps/cld
folder and continue to occupy considerable space. If you are under severe constraints you can delete this folder and reclam >100M
Copyright 2011-2015, Blagovest Dachev.
Apache 2
FAQs
Language detection for Javascript. Based on the CLD2 (Compact Language Detector) library from Google. Highly optimized for space and speed. Runs about 10x faster than other libraries. Detects over 160 languages. Full test coverage. Runs on Linux, OS X, an
The npm package cld_lib receives a total of 1 weekly downloads. As such, cld_lib popularity was classified as not popular.
We found that cld_lib demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.