Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 356 Bytes

USAGE.md

File metadata and controls

21 lines (16 loc) · 356 Bytes
import { Esv } from "esv-sdk";

const esv = new Esv({
  apiKey: process.env["ESV_API_KEY"] ?? "",
});

async function run() {
  const result = await esv.passages.getHtml({
    query: "John 1:1",
  });

  // Handle the result
  console.log(result);
}

run();