
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).
cogserv-entity-linking
Advanced tools
Node.js client for Microsoft Cognitive Services API - Entity Linking
Node.js API client for Microsoft Cognitive Services - Entity Linking
First, set your Microsoft Cognitive Service Entity Link key:
export COGSERV_ENTITYLINK_KEY=<your_api_key>`
Then in your code you can invoke linkEntities
with params having the
following schema:
{
text: <text_in_string>,
selection: <words_or_phrases_in_string>,
offset: <offset_in_string>
}
'use strict'
const fs = require('fs')
const async = require('async')
const linkEntities = require('cogserv-entity-linking').linkEntities
const getText = (callback) => {
fs.readFile('./sample.txt', 'utf8', (err, data) => {
if (err) return callback(err)
console.log(data)
callback(null, data)
})
}
async.waterfall([
getText,
(text, callback) => {
let params = {
text: text
}
return linkEntities(params, callback)
}
], (err, result) => {
if (err) return console.error(err)
console.log(JSON.stringify(JSON.parse(result), null, 2))
})
FAQs
Node.js client for Microsoft Cognitive Services API - Entity Linking
The npm package cogserv-entity-linking receives a total of 2 weekly downloads. As such, cogserv-entity-linking popularity was classified as not popular.
We found that cogserv-entity-linking 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
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.