detectlanguage-npm
v1.0.0
Published
A detectlanguage npm client (unofficial)
Downloads
1
Readme
detectlanguage.com unofficial node js client
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