1.0.0 • Published 3 years ago

esidoc.js v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

esidoc.js

Simple JS client for Esidoc's private API. Probably just scratches the surface of what the API can do, but for now the 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)
})();