Socket
Socket
Sign inDemoInstall

is-capitalized

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    is-capitalized

Checks if an input string is a capitalized or not.


Version published
Weekly downloads
23K
decreased by-13.17%
Maintainers
1
Install size
5.72 kB
Created
Weekly downloads
 

Readme

Source

is-capitalized

Checks if an input string is a capitalized or not.

Installation

npm install --save is-capital

Usage

var isCapitalized = require('is-capitalized')

isCapitalized('Aaa') // true
isCapitalized('Bbb') // true
isCapitalized('Ccc') // true

isCapitalized('A') // true
isCapitalized('B') // true
isCapitalized('C') // true

isCapitalized('a') // false
isCapitalized('b') // false
isCapitalized('c') // false

// edgecase
isCapitalized('AAA') // true
isCapitalized('BBB') // true
isCapitalized('CCC') // true

var strict = true
isCapitalized('AAA', strict) // false
isCapitalized('BBB', strict) // false
isCapitalized('CCC', strict) // false

License

MIT

Keywords

FAQs

Last updated on 02 Jan 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc