Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 612 Bytes

README.md

File metadata and controls

18 lines (14 loc) · 612 Bytes

esidoc.js

Simple JS client for Esidoc's private API. Probably just scratches the surface of what the API can do, but for now 2 of the main features are there: search documents & get info about the school.

Example

import Esidoc from "esidoc.js";

(async () => {
	const client = await new Esidoc("your-code").init();
	const info = await client.about();
	const query = await client.search({ query: "agatha christie" });
	// Everything is typed, and the keys are more or less explicit about how they do.
	// Sometimes, the data types are a bit confusing (with values such as: "5" in string)
})();