Skip to content

Latest commit

 

History

History
46 lines (27 loc) · 1.37 KB

readme.md

File metadata and controls

46 lines (27 loc) · 1.37 KB

is-acronym

Determines whether a given string is a common English acronym.

NPM Build Status JavaScript Style Guide

Install

This module requires node >= 4.

npm install --save is-acronym

Usage

const isAcronym = require('is-acronym')

isAcronym('CDN') // true
isAcronym('FPS') // true

isAcronym('cdn') // false
isAcronym('fps') // false
isAcronym(' TEST ') // false

API

Determines whether a given string is a common English acronym.

Type: function (text): boolean

Related

License

MIT © Travis Fischer