Socket
Socket
Sign inDemoInstall

sentimentjs

Package Overview
Dependencies
63
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.2 to 1.0.3

example-screenshot.png

2

package.json
{
"name": "sentimentjs",
"version": "1.0.2",
"version": "1.0.3",
"description": "",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -5,2 +5,4 @@ # sentimentjs

<img src="example-screenshot.png">
This sentiment library is used in our Crowd Parser app, which analyzes Twitter sentiment. Check it out here:

@@ -156,4 +158,40 @@

## Using the Example
First, navigate to the `example` directory.
```
cd example
```
Next, install dependencies:
```
npm install -g bower
npm install
bower install
```
Next, start the server:
```
node server
```
Finally, open `http://localhost:3000` in your browser.
To test, edit the array of strings in `server.js`. You can also try to use the `tweetsArray` method and enter an array of tweets.
```
var results = allLayersAnalysis.stringsArray(['I love dogs. They are wonderful! 😍 😍', 'I hate brussel sprouts. They are terrible. 😾', 'This is great! But also bad.']);
```
Change the above array for testing. Again, the sample output can be displayed like this:
<img src="example-screenshot.png">
There is a function in `index.html` to highlight the positive and negative words in the text.
## Contributing
We welcome you to join us in creating a better sentiment library! Our library is still in an infant stage, so contributions would be greatly appreciated!
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc