Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Unofficial Node.js bindings for Compact Language Detector v3 (CLD3).
The library exposes a getLanguages
function that returns the detected languages in the provided text.
This is an unofficial wrapper around the CLD3 library. It is not affiliated with Google in any way.
Installation: npm install cld3
import { getLanguages } from 'cld3';
const langs = getLanguages(
'This piece of text is in English. Гэты тэкст на беларускай мове.'
);
console.log(langs);
/**
* [
* {
* language: 'be',
* probability: 0.9173873066902161,
* is_reliable: true,
* proportion: 0.5853658318519592
* },
* {
* language: 'en',
* probability: 0.9999790191650391,
* is_reliable: true,
* proportion: 0.4146341383457184
* }
* ]
*/
npm install
npm run build
npm run test
or use Docker
docker build . -t node-cld3:node
docker run --rm -it node-cld3:node
FAQs
Unofficial Node.js bindings for Compact Language Detector v3 (CLD3)
The npm package cld3 receives a total of 19 weekly downloads. As such, cld3 popularity was classified as not popular.
We found that cld3 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.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.