You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: readme.md
+24-24Lines changed: 24 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
# BibleApi
1
+
# Berea
2
2
A Promised-wrapped Node library and ORM for [https://scripture.api.bible/](API.Bible).
3
3
4
4
This includes a `bibleService` which is a promised-wrapped library for the API with some convenience methods.
@@ -17,7 +17,7 @@ But it **also** includes an ORM that turns data into `Bible`, `Book`, `Chapter`
17
17
5. After it's created you will need the credentials
18
18
19
19
# Usage
20
-
This is thoroughly documented via JSDoc and a [Github Wiki](https://github.com/paceaux/BibleApi/wiki)
20
+
This is thoroughly documented via JSDoc and a [Github Wiki](https://github.com/paceaux/Berea/wiki)
21
21
22
22
Using the API and this library amounts to three steps:
23
23
@@ -34,7 +34,7 @@ You may want multiple services if you plan on using different versions of the ap
34
34
35
35
### Basic Example
36
36
```
37
-
const {BibleService} = require('bibleapi');
37
+
const {BibleService} = require('berea');
38
38
39
39
const service = new BibleService('someLongToken');
40
40
```
@@ -43,7 +43,7 @@ const service = new BibleService('someLongToken');
43
43
As the API itself is version controlled, the library is too. This is an optional second parameter:
44
44
45
45
```
46
-
const {BibleService} = require('bibleapi');
46
+
const {BibleService} = require('berea');
47
47
48
48
const service = new BibleService('someLongToken', 1);
49
49
```
@@ -53,13 +53,13 @@ const service = new BibleService('someLongToken', 1);
53
53
The Bible API itself offers text and audio. As you may want one over the other, this is an optional third parameter. The options are `text` or `audio`.
54
54
55
55
```
56
-
const {BibleService} = require('bibleapi');
56
+
const {BibleService} = require('berea');
57
57
58
58
const service = new BibleService('someLongToken', 1, 'audio');
59
59
```
60
60
61
61
## Setting options in requests
62
-
All of the [request options are documented](https://github.com/paceaux/BibleApi/wiki/Request-Parameters). One notable difference between how this library works is that _options can be camelCased_.
62
+
All of the [request options are documented](https://github.com/paceaux/Berea/wiki/Request-Parameters). One notable difference between how this library works is that _options can be camelCased_.
63
63
64
64
While the [API](https://scripture.api.bible/livedocs#/) will require `content-type` if you want to set options, you can send `contentType`.
65
65
@@ -69,7 +69,7 @@ Look in `src/constants/requestParameters.js` for all of the aliases. `RequestPar
69
69
Before getting verses, chapters, or passages, you need a `bibleId`. The only way to know _that_ is to look at all of the Bibles, first.
70
70
71
71
### Get all Bibles
72
-
*[Request Options](https://github.com/paceaux/BibleApi/wiki/Request-Parameters#BiblesRequestParam) ( an array)
72
+
*[Request Options](https://github.com/paceaux/Berea/wiki/Request-Parameters#BiblesRequestParam) ( an array)
0 commit comments