Giter Club home page Giter Club logo

bible.js's Introduction

bible.js Donate now

The Bible as a NPM module.

Installation

$ npm i bible.js

Documentation

BibleJS(options)

Creates a new BibleJS instance.

Params

  • Object options: An object containing the following fields:
  • language: the langauge of the BibleJS instance (default: "en").

Return

  • BibleJS The BibleJS instance.

get(reference, callback)

This function gets the response providing the BibleJS reference.

Params

  • String reference: The verse reference. It can be in the following formats:
e.g. Genesis 1:1  - returns one verse
or Genesis 1:1,2  - returns two verses (1 and 2)
or Genesis 1:1-10 - returns the verses 1 - 10
or Genesis 1      - returns the whole chapter
  • Function callback: The callback function.

Return

  • BibleJS The BibleJS instance (self).

search(query, callback)

This function gets the verses that match to the regular expression provided.

Params

  • String|RegExp query: The string/regular expression that matches the searched verses.
  • Function callback: The callback function

Return

  • BibleJS The BibleJS instance (self)

How to contribute

Have an idea? Found a bug? See how to contribute.

License

KINDLY © Ionică Bizău–The LICENSE file contains a copy of the license.

bible.js's People

Contributors

ionicabizau avatar namanyayg avatar

Watchers

James Cloos avatar

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.