<commit_before># DuckDuckGo Wrapper for Node.js

A very simple wrapper for the DuckDuckGo API. Just simplifies an edge case error check and presents a simple way to set & reuse options.

Usage: 

    var ddg = require('ddg-api');
    var client = new ddg.SearchClient({useSSL: true});
    client.search("Apple Inc.", function(error, response, data) {

      if (!error && response.statusCode == 200)
      {
        console.log(data.Abstract);
      } else {
        console.log("ERROR! " + error + "/" + response.statusCode);
      }

    });
    <commit_msg>update README w/ link<commit_after># DuckDuckGo Wrapper for Node.js

A very simple wrapper for the DuckDuckGo API (http://duckduckgo.com/api.html). Just simplifies an edge case error check and presents a simple way to set & reuse options.

Usage: 

    var ddg = require('ddg-api');
    var client = new ddg.SearchClient({useSSL: true});
    client.search("Apple Inc.", function(error, response, data) {

      if (!error && response.statusCode == 200)
      {
        console.log(data.Abstract);
      } else {
        console.log("ERROR! " + error + "/" + response.statusCode);
      }

    });
    
{'fraction_non_alphanumeric': 0.12661498708010335, 'fraction_numerical': 0.00516795865633075, 'mean_word_length': 2.8098360655737706, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4283843', 'n_tokens_mistral': 372, 'n_tokens_neox': 345, 'n_words': 108}