1.0.2 • Published 5 years ago

html-to-array v1.0.2

Weekly downloads
3
License
Apache-2.0
Repository
github
Last release
5 years ago

html-to-array NPM version Build Status Dependency Status Coverage percentage

Scrap a html page and convert all text on the page into an array.

Installation

$ npm install --save html-to-array

Usage

const HTML_TO_ARRAY = require('html-to-array');
const URL = 'https://www.robertgabriel.ninja';
HTML_TO_ARRAY.scrap(URL).then(data =>)
;
// Returns an object
/*
  let object = {
    message: 'success',
    sentences: ['Robert gabriel is cool', 'Here is sentece two']
  };
*/
// Error
/*
  let object = {
    message: 'error',
    sentences: []
  };
*/

License

Apache-2.0 © Robert James Gabriel

1.0.2

5 years ago

1.0.0

5 years ago

0.0.0

5 years ago