
Security News
npm ‘is’ Package Hijacked in Expanding Supply Chain Attack
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.
sentiment-and-keyword
Advanced tools
Analyze strings based on sentiment and keyword strength using synonyms sentiment analysis
See https://www.npmjs.com/package/sentiment-and-keyword
npm i sentiment-and-keyword
const sentkey = require('sentiment-and-keyword');
// Set your text to analyzed *required
var text = "The text you want to be analyzed";
// Set your keywords to be used for analysis *required
var keywords = ["love", "honour", "independance"];
sentkey.analyze(text,keywords,function(err,res){
if(err){
console.log(err);
return
}
console.log(res);
})
{
"text": "The text you sent for analysis",
"sentiment_score": 7,
"sentiment_status": "Positive",
"sentiment_calculation": [ {"keyword1": 2},
{"keyword2": 3} ],
"sentiment_comparative": "1.67",
"strength_tracker": [ {"keyword": "Independent", "score": 3},
{"keyword": "Honest", "score": 0},
{"keyword": "Collaborative", "score": 2},
{"keyword": "Brilliant", "score": 4},
{"keyword": "Caring", "score": 1} ],
"graph_data": [ ["Keyword", "Percentage", { "role": "style" }],
["keyword1", 0, "#color"],
["keyword3", 50, "#color"],
["keyword4", 25, "#color"],
["keyword5", 15, "#color"],
["keyword6", 10, "#color"], ]
};
FAQs
Analyze strings based on sentiment and keyword strength using synonyms and related concepts
The npm package sentiment-and-keyword receives a total of 3 weekly downloads. As such, sentiment-and-keyword popularity was classified as not popular.
We found that sentiment-and-keyword 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
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.
Security News
A critical flaw in the popular npm form-data package could allow HTTP parameter pollution, affecting millions of projects until patched versions are adopted.
Security News
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.