{"id":19257542,"url":"https://github.com/ericvera/name-initials","last_synced_at":"2025-04-21T15:31:23.397Z","repository":{"id":57307594,"uuid":"76426753","full_name":"ericvera/name-initials","owner":"ericvera","description":"A JavaScript utility library to extract initials from names.","archived":false,"fork":false,"pushed_at":"2016-12-28T22:45:52.000Z","size":10,"stargazers_count":7,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-12T12:08:16.645Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ericvera.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-12-14T05:07:53.000Z","updated_at":"2023-05-22T11:21:27.000Z","dependencies_parsed_at":"2022-09-05T17:00:30.047Z","dependency_job_id":null,"html_url":"https://github.com/ericvera/name-initials","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericvera%2Fname-initials","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericvera%2Fname-initials/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericvera%2Fname-initials/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericvera%2Fname-initials/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ericvera","download_url":"https://codeload.github.com/ericvera/name-initials/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250080628,"owners_count":21371541,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T19:10:35.123Z","updated_at":"2025-04-21T15:31:23.136Z","avatar_url":"https://github.com/ericvera.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# name-initials\nA JavaScript utility library to extract initials from names.\n\n\u003cp\u003e\n  \u003ca href=\"https://npmjs.org/package/name-initials\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/v/name-initials.svg?style=flat-square\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n# Usage\n\nInstall the module:\n\n```sh\nnpm install name-initials --save\n```\n\n### ES6\n```js\nimport nameInitials from 'name-initials';\n\nconst initials = nameInitials('John Smith');\n\nconsole.log(initials);\n// Output: JS\n```\n\n### Pre-ES6\n```js\nvar nameInitials = require('name-initials');\n\nvar initials = nameInitials('John Smith');\n\nconsole.log(initials);\n// Output: JS\n```\n\n# Input =\u003e Output\n* E. =\u003e E\n* Eric =\u003e E\n* E. Vera =\u003e EV\n* Eric V. =\u003e EV\n* Eric A. E. =\u003e EA\n* Eric A. E. Vera =\u003e EV\n* Eric A. Vera =\u003e EV\n* Eric A. Vera Perez =\u003e EV\n* Eric Vera-Perez =\u003e EV\n* Eric A. Vera-Perez =\u003e EV\n* Eric Vera Perez =\u003e EV\n* Eric A. de Vera Perez =\u003e ED\n* Eric A. de Vera-Perez =\u003e ED\n* Eric A. Perez-de Vera =\u003e EP\n* Eric A. Perez de Vera =\u003e EP\n* Eric (Instructor Somewhere) =\u003e E\n* Éric Vera =\u003e ÉV\n* Vera-Perez =\u003e VP\n* Eric \"No Nickname\" Vera =\u003e E\n\n# License\n[MIT](https://github.com/ericvera/name-initials/blob/master/LICENSE)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericvera%2Fname-initials","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fericvera%2Fname-initials","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericvera%2Fname-initials/lists"}