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.
Natural language detection library for CommonJS.
You can install it directly through the npm command.
$ npm i franc-cjs --save
If you're using it in a browser, you can utilize the CDN mode.
<script src="https://cdn.jsdelivr.net/npm/@litert/loader@3.5.1/dist/loader.min.js?path=index&npm={'franc-cjs':'6.1.0-patch.3'}"></script>
Demo code is written using TypeScript.
import * as franc from './index';
franc.francAll('Сегодня погода такая хорошая, ты что думаешь? Я думаю, что просто так.', {
'only': ['cmn', 'rus', 'jpn']
}); // [['rus', 1]]
franc.franc('O tempo está realmente bom hoje, o que você acha? Eu acho que é isso.'); // por
franc.franc('The weather is really nice today, don\'t you think? I think it\'s just perfect.'); // eng
franc.franc('今日の天気はとてもいいですね、どう思いますか?私はこれがちょうどいいと思います。'); // jpn
franc.franc('今天的天气真好,你觉得呢?我觉得就是这样。'); // cmn
Once it's compiled correctly, you can run the sample code in the terminal by using node ./dist/test-node
.
To view the examples, simply access the test/
directory in your browser.
Click here to view the examples online
This library is the CommonJS version of franc library. If you need the ESM-only version, please use the original version directly. This library will be updated in sync with franc library.
This library is published under MIT license.
FAQs
Natural language detection, for CommonJS.
The npm package franc-cjs receives a total of 101 weekly downloads. As such, franc-cjs popularity was classified as not popular.
We found that franc-cjs demonstrated a healthy version release cadence and project activity because the last version was released less than 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.