1.1.0 • Published 6 years ago
string-scraper v1.1.0
String-scraper
String-scraper is a NodeJS module that checks if a string exists within the contents of a URL. Boolean returned via Bluebird promise.
const stringScraper = require('string-scraper')
const url = 'http://www.example.com/';
const string = 'This domain is established to be used for illustrative examples in documents.';
const charMin = 50;
stringScraper(url, string, charMin)
.then((result) => {
return result;
})
.catch((err) => {
console.log(err);
});
Installation
npm install string-scraper
Testing
To run the tests, download the repo, then within the string-scraper directory, run:
npm test