Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@amanda-mitchell/esv-api

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@amanda-mitchell/esv-api

A client for interacting with Crossway's ESV API.

  • 2.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
33
increased by57.14%
Maintainers
1
Weekly downloads
 
Created
Source

@amanda-mitchell/esv-api

Release

This is a Javascript client for Crossway's ESV API.

Installation

yarn add @amanda-mitchell/esv-api

Usage

import { createEsvApiClient } from '@amanda-mitchell/esv-api';

// This can be any method that is compatible with the Fetch interface.
import fetch from 'node-fetch';

const apiKey =
  'Go to https://api.esv.org/ to register an application and get an API key.';

const client = createEsvApiClient({ apiKey, fetch });

client
  .content({
    passage: 'Genesis 1:1',
    format: 'txt',
    bible: 'leb',
  })
  .then(console.log)
  .catch(console.error);

Available methods

Each of these methods takes two parameters: a query string, and an optional options hash containing the keys corresponding to the official API docs. To make consumption in JS easier, each option has been converted to camel case. For example, rather than include-passage-references, this client accepts an includePassageReferences key.

With the exception of passageAudio, each endpoint returns a Javascript object representing the parsed JSON of the response.

FAQs

Package last updated on 08 Mar 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc