
Security News
OWASP 2025 Top 10 Adds Software Supply Chain Failures, Ranked Top Community Concern
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.
proper-name-case
Advanced tools
Attempt to properly case a person's name. It should noted that without creating a massive lookup table this can only be partially complete. This module adjusts casing based on patterns of common casing quirks (O'Brien, McDonald, Baron von Mustache, etc.) but there will always be exceptions. For example, MACKENZIE converts to Mackenzie even though some people will case it as MacKenzie
Pass a string to the convert method. It will return a best effort at converting it to proper name case.
Clone the repo and do your thing. If you add code to cover additional conversions, please make sure they are added to the tests.
npm run test
The file test-data.js contains a list of names to be converted and the expected results.
This code is a conversion of the following: https://dialect.ca/code/name-case/name_case.phps
FAQs
Properly case proper nouns
The npm package proper-name-case receives a total of 26 weekly downloads. As such, proper-name-case popularity was classified as not popular.
We found that proper-name-case demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.

Security News
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.