edqx / node-smhw

A Show My Homework API wrapper for node.js ✨🙌
https://weakey.es/node-smhw
2 stars 1 forks source link

ReferenceError: ShowMyHomework is not defined #13

Closed Vreslia closed 1 year ago

Vreslia commented 1 year ago

async function name(){ const client = new ShowMyHomework.Client(); const school = await client.searchSchools("Elk Valley Elementary"); }

name();

edqx commented 1 year ago

Hi, You need to import the library.

try writing

const ShowMyHomework = require("node-smhw");

at the top of your file.

Hope that helps.