bible-verse-parser
TypeScript icon, indicating that this package has built-in type declarations

1.0.10 • Public • Published

Bible Verse Parser

Parses out verse references in a block of text.

import {parseText} from 'bible-verse-parser';
 
parseText('I love Romans 10:9')
// [{"startIdx":7, "endIdx":18, "osis":"Rom.10.9", "text":"Romans 10:9"}]

It supports ranges

import {parseText} from 'bible-verse-parser';
 
parseText('I love Romans 10:9-10')
// [{"startIdx":7,"endIdx":21,"osis":"Rom.10.9-Rom.10.10","text":"Romans 10:9-10"}]

It supports comma spanish

import {parseText} from 'bible-verse-parser';
 
parseText('I love Romanos 10:9-10')
// [{"startIdx":7,"endIdx":22,"osis":"Rom.10.9-Rom.10.10","text":"Romanos 10:9-10"}]

Todo

  1. Add ability to customizing the list of valid book names.
  2. Add better localization support

Readme

Keywords

Package Sidebar

Install

npm i bible-verse-parser

Weekly Downloads

4

Version

1.0.10

License

ISC

Unpacked Size

26.5 kB

Total Files

8

Last publish

Collaborators

  • phillipburch