1.0.3 • Published 7 years ago

nsp-abbreviator v1.0.3

Weekly downloads
4
License
ISC
Repository
github
Last release
7 years ago

abbreviator

Find abbreviations and full forms of words or phrases by different topics

Features

  • Get full form from abbreviation by different topics
  • Get abbreviation from full form by different topics
  • More and more topics are added every day, week, month and year.

Prerequisites

Make sure to have the following packages installed:

Usage

A step by step series to start using abbreviator:

Install package

npm install --save abbreviator

Import methods from installed module

import { abbrevTofullForm } from 'abbreviator'	// abbreviation to full form
import { fullFormToAbbrev } from 'abbreviator'	// full form to abbreviation

Then, just invoke the methods as you need

// full form to abbreviation
// the first argument is the 'category' or 'topic' for abbreviation transformation (MUST BE ALL CAPITALIZED!)
// the second argument is the abbreviation for which you need the full form of (MUST BE ALL CAPITALIZED!)

abbrevTofullForm('STATES', 'MA');
// abbreviation to full form
// the first argument is the 'category' or 'topic' for abbreviation transformation (MUST BE ALL CAPITALIZED!)
// the second argument is the full form for which you need the abbreviation of (FIRST LETTER OF EACH WORD MUST BE CAPITALIZED!)

abbrevTofullForm('STATES', 'Alabama');

Authors