usfx
Bible USFX parser
Last updated 3 years ago by ksturner .
ISC · Original npm · Tarball · package.json
$ cnpm install usfx 
SYNC missed versions from official npm registry.

USFX Bible Parser

Parser for reading verse data from USFX bible format files. USFX is simply the XML variant of the common USFM format for storing bible text data.

Usage

Install the library via NPM:

npm install usfx

Then, once installed you can require and use it:

var usfx = require('usfx');
var ref = 'jn 3:16-18';
var bible = uxfx.parseUSFXFile('./asv.xml');
var verses = bible.getVerseText(ref);
console.log(verses);

Note that the output of parsing a USFX file is a bible object, which contains the following method (among other less-useful ones):

  • getVerseText(REF) - Takes a string bible reference and returns an array of text for the verses specified.

License

This work is copyright 2017 Kevin S. Turner and licensed under an MIT-style license.

Current Tags

  • 0.1.3                                ...           latest (3 years ago)

4 Versions

  • 0.1.3                                ...           3 years ago
  • 0.1.2                                ...           3 years ago
  • 0.1.1                                ...           4 years ago
  • 0.1.0                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 5
Dependencies (5)
Dev Dependencies (9)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |