UNPKG

usfm-parser

Version:

A small library that provides functions to convert usfm to JSON and vice-versa

19 lines (16 loc) 600 B
[![Build Status](https://api.travis-ci.org/ihoegen/usfm-parser.svg?branch=master)](https://travis-ci.org/ihoegen/usfm-parser) [![npm](https://img.shields.io/npm/dt/usfm-parser.svg)]() [![npm](https://img.shields.io/npm/v/usfm-parser.svg)]() # usfm-parser This library takes in USFM text, and outputs it into a JSON format. It also takes JSON formatted scripture and outputs it into USFM. ## Setup `npm install usfm-parser` ## Usage ```js var usfm = require('usfm-parser'); //Convert from USFM to JSON var toJSON = usfm.toJSON(/**USFM Text**/); //JSON to USFM var toUSFM = usfm.toUSFM(toJSON); ```