Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 625 Bytes

README.md

File metadata and controls

31 lines (22 loc) · 625 Bytes

CircleCI

extract-main-text-node

Ported from mono0x/extractcontent.

Installing

npm install extract-main-text

Usage

var BodyExtractor = require('extract-main-text');
var extractor = new BodyExtractor({
    url: 'http://***.com/'
  });
extractor.analyze()
  .then(function(text) {
    console.log(extractor.title);
    console.log(extractor.mainText);
  });

License

The BSD license