Socket
Socket
Sign inDemoInstall

alchemy-api-nav

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    alchemy-api-nav

sentiment analysis of sentences


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Install size
35.2 kB
Created
Weekly downloads
 

Readme

Source

Install

npm install alchemy-api-nav

Usage

var AlchemyAPI = require('./alchemyapi');
var alchemyapi = new AlchemyAPI();

var myText = "Whoa, AlchemyAPI's Node.js SDK is really great, I can't wait to build my app!";
alchemyapi.sentiment("text", myText, {}, function(response) {
console.log("Sentiment: " + response["docSentiment"]["type"]);
});

In Adonisjs

// bootstrap/app.js
'alchemy-api-nav/providers/AlchemyapiProvider'

// PageController.js
const alchemyapi = use('Alchemyapi')

class PageController {
  * index (req, res) {
    var myText = "I am feeling good about your broken record";
    alchemyapi.sentiment("text", myText, {}, function(response) {
      console.log("Sentiment: " + response["docSentiment"]["type"]);
    });
    return res.send('ok')
  }
}

FAQs

Last updated on 28 Oct 2016

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.

Install

Related posts

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