New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

simple-sentiment-lib

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simple-sentiment-lib - npm Package Compare versions

Comparing version 1.0.8 to 1.0.9

2

package.json
{
"name": "simple-sentiment-lib",
"version": "1.0.8",
"version": "1.0.9",
"description": "Very compact and simple to use sentiment analysis lib",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -8,3 +8,3 @@ # simple-sentiment-lib

const exampleData = "Lorem Ipsum dolor sit amet, consectetur adipiscing elit good great";
const exampleData = "Lorem Ipsum dolor sit amet, consectetur adipiscing elit good great bad ";

@@ -19,6 +19,10 @@ var result = analyse(exampleData);

{
score: 6,
comparative: 0.6,
positive: { score: 6, comparative: 0.6, words: [ 'good', 'great' ] },
negative: { score: 0, comparative: 0, words: [] }
score: 3,
comparative: 0.2727272727272727,
positive: {
score: 6,
comparative: 0.5454545454545454,
words: [ 'good', 'great' ]
},
negative: { score: 3, comparative: 0.2727272727272727, words: [ 'bad' ] }
}

@@ -25,0 +29,0 @@ ```

const analyse = require("./analysis/sentiment");
const exampleData = "Lorem Ipsum dolor sit amet, consectetur adipiscing elit good great";
const exampleData = "Lorem Ipsum dolor sit amet, consectetur adipiscing elit good great bad";

@@ -5,0 +5,0 @@ var result = analyse(exampleData);

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc