https://github.com/joshpetit/sda-hymnal
An NPM Package for the Seventh-day Adventist Hymnal
https://github.com/joshpetit/sda-hymnal
christian hymnal religious sda seventh-day-adventist
Last synced: 14 days ago
JSON representation
An NPM Package for the Seventh-day Adventist Hymnal
- Host: GitHub
- URL: https://github.com/joshpetit/sda-hymnal
- Owner: joshpetit
- Created: 2020-06-17T14:39:11.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-30T20:39:06.000Z (over 2 years ago)
- Last Synced: 2025-04-19T18:54:17.572Z (about 1 month ago)
- Topics: christian, hymnal, religious, sda, seventh-day-adventist
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/sda-hymnal
- Size: 417 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# sda-hymnal
This is the entire (695 hymn) Sda Hymnal; free to use in any capacity.# Installation
```sh
npm install sda-hymnal
```
# Use
```js
const sdaHymnal = require('sda-hymnal')sdaHymnal({
number: VERSE_NUMBER, //Either Number or Title, only one required.
title: VERSE_TITLE,
type: 'json' || 'text' || 'html' //Defaults to JSON
}).then( x =>{
//...
})
```
# Formats
### Json Format
```js{
hymnNumber: NUMBER,
hymnTitle: 'Title',
verses: [
{
verseName: 'Verse 1',
text: 'Verse_Text'
},
{
verseName: 'Refrain',
text: 'Refrain_Text'
},
//....
]}
```
### Text Format
```
HYMN_NUMBER
HYMN_TITLEVerse 1
Verse_TextRefrain
Refrain_Text
```### HTML Format
```htmlHymn_Number
Hymn_Title
Verse 1
Verse_Text
Refrain
Refrain_Text
```
# Credits
SQLITE Data modified from [obaralll's hymnal app](https://github.com/obaraIII/SDAHymnal)