
Product
Introducing Tier 1 Reachability: Precision CVE Triage for Enterprise Teams
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
name-initials-generator
Advanced tools
A simple npm package to generate initials from a name, perfect for use in profile pictures or other areas where you want to represent a name with initials.
You can install this package using npm:
npm install name-initials-generator
const getInitials = require('name-initials-generator');
const name1 = 'John Doe';
const initials1 = getInitials(name1);
console.log(`The initials for "${name1}" are: ${initials1}`); // Outputs: The initials for "John Doe" are: JD
const name2 = 'Jane A. Smith';
const initials2 = getInitials(name2);
console.log(`The initials for "${name2}" are: ${initials2}`); // Outputs: The initials for "Jane A. Smith" are: JAS
FAQs
A package to generate initials from a name
We found that name-initials-generator demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers 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.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.