DuckDuckGo instant answer API node module
JavaScript
Switch branches/tags
Nothing to show
Permalink
Failed to load latest commit information.
bin jshint-ed for node in strict mode Dec 30, 2013
lib jshint-ed for node in strict mode Dec 30, 2013
test use nodeunit setup methods. use 'nested' format in test runner Jul 2, 2013
.gitignore basic instant answer support Jun 27, 2013
.jshintrc
.npmignore basic instant answer support Jun 27, 2013
README.md bump version. update README Dec 30, 2013
index.js jshint-ed for node in strict mode Dec 30, 2013
package.json

README.md

node-ddg-api - DuckDuckGo instant answer API node module

Access the DuckDuckGo API with Nodejs.

Dependencies

Only depends on optimist for the cli but the core has no dependencies.

Installation

To install via NPM type the following: npm install node-ddg-api

(use npm install -g node-ddg-api to add node-ddg bin script to your path)

You can also install via git by cloning:

git clone https://github.com/lukewendling/ddg-api.git /path/to/project

Usage

var DDG = require('node-ddg-api').DDG;

var ddg = new DDG('my-app-name');

ddg.instantAnswer('superman', {skip_disambig: '0'}, function(err, response) {
  console.log(response);
});
node-ddg superman -t my-app-name --skip_disambig 0

Running tests (after cloning)

npm install
npm test