kwest-text
v0.1.0
Published
detect and convert encoding
Downloads
7
Readme
kwest-text
Text fetching middleware for the kwest module.
Installation
$ npm install --save kwest-text
Use
var kwestText = require('kwest-text'),
kwest = require('kwest-base'),
request = kwest.wrap(kwestText());
// requests text
request('http://www.example.com/some-encoded-text')
.then(function (res) {
// detects encoding and converts to utf-8
console.log(res.body);
})