kwest-text

0.1.0 • Public • Published

kwest-text Build Status Dependency Status

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);
  })

Readme

Keywords

Package Sidebar

Install

npm i kwest-text

Weekly Downloads

2

Version

0.1.0

License

MIT

Last publish

Collaborators

  • janpotoms