alexlangberg/node-goldwasher-needle

View on GitHub
example.js

Summary

Maintainability
A
0 mins
Test Coverage
'use strict';

var goldwasher = require('./');

var url = 'http://www.google.com';
var options = {
  goldwasher: {
    selector: 'h1, h2, h3, h4, h5, h6, p'
  }
};

goldwasher(url, options, function(error, result) {
  console.log(result);
});