Work in progress
This library is a wrapper for the Grepper API.
Replace your_api_key with your actual API Key
import Grepper from "./index.ts";
Grepper.apiKey = "your_api_key";This endpoint searches all answers based on a query.
Grepper.search("strings in c").then((answers) => {
console.log(answers);
});This endpoint retrieves a specific answer.
Grepper.retrieve(12345).then((answer) => {
console.log(answer);
});This endpoint updates a specific answer.
Grepper.update(54321, "This answer will be updated").then((updateResult) => {
console.log(updateResult);
});