npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

bible-book-name-abbreviator

v1.0.5

Published

Abbreviates bible book names

Downloads

5

Readme

bible-book-name-abbreviator

A simple library for returning an abbreviated Bible book name. The input string is not case sensitive and you are able to reverse the behavior of the do funciton to return a full book name from an abbreviation.

Installation

bible-book-name-abbreviator works in both the browser and [node.js][node].

Node / NPM

Install via npm:

npm install bible-book-name-abbreviator

And then require or import it:

var abbr = require('bible-book-name-abbreviator');
or
import {default as abbr} from 'bible-book-name-abbreviator';

Examples

Usage

Get a Bible book name abbreviation

var abbr = require('bible-book-name-abbreviator');

abbr.do('Matthew'); // Returns: Mt
abbr.do('Exodus'); // Returns: Ex
abbr.do('1 Kings'); // Returns: 1 Kgs

The do function can be reversed as well by passing an optional boolean parameter

var abbr = require('bible-book-name-abbreviator');

abbr.do('Mt',true); // Returns: Matthew
abbr.do('ex',true); // Returns: Exodus
abbr.do('1 Kgs',true); // Returns: 1 Kings

The reference function takes in a reference then returns the full reference with the new abbreviated book name.

abbr.reference('1 Corinthians 6:20-7:12'); // Returns: 1 Cor 6:20-7:12

Map of book names and abbreviations

Genesis : Gen, Exodus : Ex, Leviticus : Lev, Numbers : Num, Deuteronomy : Deut, Joshua : Jsh, Judges : Judg, Ruth : Rth, 1 Samuel : 1 Sam, 2 Samuel : 2 Sam, 1 Kings : 1 Kgs, 2 Kings : 2 Kgs, 1 Chronicles : 1 Chron, 2 Chronicles : 2 Chron, Ezra : Ezr, Nehemiah : Neh, Esther : Esth, Job : Job, Psalm : Pslm, Proverbs : Prov, Ecclesiastes : Eccles, Song of Solomon : Song, Isaiah : Isa, Jeremiah : Jer, Lamentations : Lam, Ezekiel : Ezk, Daniel : Dan, Hosea : Hos, Joel : Joel, Amos : Amos, Obadiah : Obad, Jonah : Jon, Micah : Mic, Nahum : Nah, Habakkuk : Hab, Zephaniah : Zeph, Haggai : Hag, Zechariah : Zech, Malachi : Mal, Matthew : Mt, Mark : Mk, Luke : Lk, John : Jn, Acts : Act, Romans : Rom, 1 Corinthians : 1 Cor, 2 Corinthians : 2 Cor, Galatians : Gal, Ephesians : Eph, Philippians : Phil, Colossians : Col, 1 Thessalonians : 1 Thes, 2 Thessalonians : 2 Thes, 1 Timothy : 1 Tim, 2 Timothy : 2 Tim, Titus : Tit, Philemon : Phm, Hebrews : Heb, James : Jas, 1 Peter : 1 Pet, 2 Peter : 2 Pet, 1 John : 1 Jn, 2 John : 2 Jn, 3 John : 3 Jn, Jude : Jud, Revelation : Rev,

License

bible-book-name-abbreviator is MIT.

Copyright 2017 Adam Gedney

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.