Skip to content

0-ali/npm-answers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Answers - Answers bot

Solve questions and answers from the community

npm package

Installation

npm install answers-bot

Usage

var answer = require('answers-bot');
var options = {
    q: "Who is the owner of google", // question
    limit: 2 // results limit
};
new answer(options, function (res) {
    for (var r in res) {
        console.log(res[r].answer);
    }
})
    .error = function (err) {
        console.error(err);
    };
// => Larry Page and Sergey Brin, who were Ph.D. students at Stanford \n Google Chrome is owned by the founder of Google and the Google company. It is not just owned by a single person.

About

Solve questions and answers from the community

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published