Skip to content

Determines whether a given string is a common English acronym.

Notifications You must be signed in to change notification settings

transitive-bullshit/is-acronym

Repository files navigation

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

About

Determines whether a given string is a common English acronym.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published