Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nlpcloud

Package Overview
Dependencies
Maintainers
1
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nlpcloud - npm Package Compare versions

Comparing version 1.0.8 to 1.0.9

8

index.js

@@ -57,2 +57,10 @@ const axios = require('axios')

translation(text) {
const payload = {
'text': text
};
return axios.post(this.rootURL + '/' + 'translation', payload, { headers: this.headers })
}
dependencies(text) {

@@ -59,0 +67,0 @@ const payload = {

2

package.json
{
"name": "nlpcloud",
"version": "1.0.8",
"version": "1.0.9",
"description": "Node.js client for the NLP Cloud API. NLP Cloud serves high performance pre-trained and custom models for NER, sentiment-analysis, classification, summarization, question answering, and POS tagging, ready for production, served through a REST API.\n\nMore details here: https://nlpcloud.io\n\nDocumentation: https://docs.nlpcloud.io",

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

@@ -151,2 +151,10 @@ # Node.js Client For NLP Cloud

### Translation Endpoint
Call the `translation()` method and pass the text you want to translate.
```js
client.translation("<Your text to translate>")
```
### Dependencies Endpoint

@@ -153,0 +161,0 @@

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