Giter Site home page Giter Site logo

choirstalls / biblescript Goto Github PK

View Code? Open in Web Editor NEW
4.0 0.0 1.0 19 KB

JavaScript parser for Bible references (written in TypeScript), with additional functionality for comparisons and scripture text retrieval.

License: MIT License

HTML 6.49% JavaScript 0.31% TypeScript 93.20%
religion christianity bible script javascript typescript parser scripture-references scripture

biblescript's Introduction

BibleScript

BibleScript is a JavaScript parser for Bible references (written in TypeScript), with additional functionality for comparisons and scripture text retrieval.

Features

BibleScript can:

  • Parse text BCV (Book, Chapter, Verse) specifications, in the following formats:
    • References
      • Genesis
      • Genesis 1
      • Genesis 1:3
    • Ranges
      • Genesis 1:3-10
      • Genesis 1:3-Exodus 2:4
  • Convert verse numbers to/from text BCV specifications
  • Retrieve the scripture text of References and Ranges, from GetBible.NET

Installation

bower install biblescript -- save

Once installed, the framework can be loaded as a dependency using an AMD loader, such as RequireJS.

API Overview

An overview of the API is as follows; note that, while access modifiers exist in TypeScript, all members can be directly accessed using JavaScript - hence, the overview below covers only the types which are meant to be accessed directly.

As this is not meant to be exhaustive, it is recommended that you go through the full definition of the API, including JSDoc-annotated documentation, which is available in the BibleScript TypeScript ambient declarations.

Bible (Class)

The facade of the framework, the Bible class will typically be what you use first.

Static Properties/Methods

Bible.getBible()

Bible.getReference(string)

Bible.getRange(string)

Instance Properties/Methods

Bible.books

This property returns an array of Book, representing the books of the bible.

Reference (Class)

Range (Class)

Book (Class)

Chapter (Class)

Category (Enumeration)

Relationship (Enumeration)

biblescript's People

Contributors

choirstalls avatar

Stargazers

 avatar  avatar  avatar  avatar

Forkers

papiguy

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.