# usfx

> Bible USFX parser

Latest version **0.1.3** (published 2017-05-17) · ISC license · 0 weekly downloads

## Install

```sh
npm install usfx
pnpm add usfx
yarn add usfx
bun add usfx
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.3 |
| Published | 2017-05-17 |
| First published | 2016-08-20 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Kevin Turner |
| Maintainers | ksturner |
| Keywords | bible, usfx, osis, xml, scripture, usfm |

## Links

- npm: https://www.npmjs.com/package/usfx
- npm.io page: https://npm.io/package/usfx

## Dependencies (5)

- [sax](https://npm.io/package/sax.md) ^1.2.1
- [clui](https://npm.io/package/clui.md) ^0.3.1
- [clear](https://npm.io/package/clear.md) 0.0.1
- [xmlstream2](https://npm.io/package/xmlstream2.md) ^1.1.1
- [bible-passage-reference-parser](https://npm.io/package/bible-passage-reference-parser.md) ^2.0.0

## Alternatives

- [babylon](https://npm.io/package/babylon.md) — 5.1M weekly downloads
- [csscolorparser](https://npm.io/package/csscolorparser.md) — 3.7M weekly downloads
- [expr-eval-fork](https://npm.io/package/expr-eval-fork.md) — 1.5M weekly downloads
- [@leeoniya/ufuzzy](https://npm.io/package/@leeoniya/ufuzzy.md) — 247.7K weekly downloads
- [xml-parser](https://npm.io/package/xml-parser.md) — 78.4K weekly downloads

## Recent versions

- 0.1.3 (latest) — 2017-05-17
- 0.1.2 — 2017-05-16
- 0.1.1 — 2016-08-20
- 0.1.0 — 2016-08-20

## README

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:

```bash
npm install usfx
```

Then, once installed you can `require` and use it:

```javascript
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.

---
_Source: https://npm.io/package/usfx · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
