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.
Node.js binding for nlpO3, a Thai natural language processing library in Rust.
# In this directory
npm run release
Before build, your nlpo3/
directory should look like this:
- nlpo3/
- index.ts
- rust_mod.d.ts
After build:
- nlpo3/
- index.js
- index.ts
- rust_mod.d.ts
- rust_mode.node
For now, copy the whole nlpo3/
directory after build to your project.
npm is still experimental and may not work on all platforms. Please report issues at https://github.com/PyThaiNLP/nlpo3/issues
npm i nlpo3
In JavaScript:
const nlpO3 = require(`${path_to_nlpo3}`)
// load dictionary and tokenize a text with it
nlpO3.loadDict("path/to/dict.file", "dict_name")
nloO3.segment("สวัสดีครับ", "dict_name")
In TypeScript:
import {segment, loadDict} from `${path_to_nlpo3}/index`
// load custom dictionary and tokenize a text with it
loadDict("path/to/dict.file", "dict_name")
segment("สวัสดีครับ", "dict_name")
Please report issues at https://github.com/PyThaiNLP/nlpo3/issues
FAQs
Node.js binding for nlpO3 Thai language processing library
The npm package nlpo3 receives a total of 1 weekly downloads. As such, nlpo3 popularity was classified as not popular.
We found that nlpo3 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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.