detectlanguage-npm

1.0.0 • Public • Published

detectlanguage.com unofficial node js client

Build Status

Installation

npm install detectlanguage --save

Usage

var DetectLanguage = require('detectlanguage')
var detectL = new DetectLanguage({token: "YOUR-API-KEY-HERE"});
detectL.detect("YOUR TEXT HERE", function(err, data) {
  //The result will be here in the data object
  //example:
  // { detections: [ { language: 'es', isReliable: false, confidence: 0.01 } ] }
})

Tests

npm test

Readme

Keywords

Package Sidebar

Install

npm i detectlanguage-npm

Weekly Downloads

0

Version

1.0.0

License

ISC

Last publish

Collaborators

  • erlapso