
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
extract-topics
Advanced tools
Use LDA (Latent Dirichlet Allocation) to extract topics from text
Simple NPM package for using Latent Dirichlet Allocation (LDA) for topic modeling on text inputs.
Install dependencies:
npm install extractTopics
import { extractTopics } from 'extractTopics';
const result = await extractTopics(text, { numTopics, numTerms });
console.log(result);
Extracts topics from input text using LDA.
text
(string): The input text to analyzeoptions
(object):
numTopics
(number, optional): Number of topics to extract. Default: 2numTerms
(number, optional): Number of terms per topic. Default: 5Returns a Promise that resolves to the LDA analysis result.
npm run example
The example will:
LDA is an unsupervised learning method that discovers topics in text documents. It views documents as random mixtures over latent topics, where each topic is characterized by a distribution over words.
1.0.3 - 2025-06-05
sentence-parse
dependency version to v1.3.1
FAQs
Extract topics from text using LDA
The npm package extract-topics receives a total of 3 weekly downloads. As such, extract-topics popularity was classified as not popular.
We found that extract-topics 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
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.