{"id":15637980,"url":"https://github.com/ralyodio/humanparser","last_synced_at":"2026-04-02T02:44:29.432Z","repository":{"id":17402843,"uuid":"20175488","full_name":"ralyodio/humanparser","owner":"ralyodio","description":"Parse a human name string into salutation, first name, middle name, last name, suffix.","archived":false,"fork":false,"pushed_at":"2024-06-16T13:47:49.000Z","size":127,"stargazers_count":97,"open_issues_count":4,"forks_count":32,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-12-12T22:13:20.102Z","etag":null,"topics":["data","es6","javascript","parsing","scraping"],"latest_commit_sha":null,"homepage":"https://www.npmjs.org/package/humanparser","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/ralyodio.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-05-26T05:50:57.000Z","updated_at":"2024-12-07T16:24:11.000Z","dependencies_parsed_at":"2024-06-18T13:54:44.645Z","dependency_job_id":"9c4015b8-924b-4c25-b9fd-d9c33b7b8caa","html_url":"https://github.com/ralyodio/humanparser","commit_stats":null,"previous_names":["chovy/humanparser"],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ralyodio%2Fhumanparser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ralyodio%2Fhumanparser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ralyodio%2Fhumanparser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ralyodio%2Fhumanparser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ralyodio","download_url":"https://codeload.github.com/ralyodio/humanparser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229763586,"owners_count":18120482,"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":["data","es6","javascript","parsing","scraping"],"created_at":"2024-10-03T11:16:47.819Z","updated_at":"2026-04-02T02:44:29.387Z","avatar_url":"https://github.com/ralyodio.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"humanparser\n=========\n\n[![NPM](https://nodei.co/npm/humanparser.png)](https://nodei.co/npm/humanparser/)\n\nParse a human name string into salutation, first name, middle name, last name, suffix.\n\n## Install\n\n    npm install humanparser\n\n## Usage\n\n    const human = require('humanparser');\n    \n### parse human name    \n\n    const fullName = 'Mr. William R. Hearst, III';\n\tconst attrs = human.parseName(fullName);\n\n    console.log(attrs);\n\n    //produces the following output\n    \n    { \n        salutation: 'Mr.',\n        firstName: 'William',\n        suffix: 'III',\n        lastName: 'Hearst',\n        middleName: 'R.',\n        fullName: 'Mr. William R. Hearst, III'\n    }\n      \n### get fullest name in string\n\n    const name = 'John \u0026 Peggy Sue';\n    const fullName = human.getFullestName(name);\n\n    //produces the following output\n    {\n        fullName: 'Peggy Sue'\n    }\n      \n### parse address\n\n    const address = '123 Happy Street, Honolulu, HI  65780';\n    const parsed = human.parseAddress(address);\n    \n    //produces the following output    \n    {\n        address: '123 Happy Street',\n        city: 'Honolulu',\n        state: 'HI',\n        zip: '65780',\n        fullAddress: '123 Happy Street, Honolulu, HI  65780'\n    }\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fralyodio%2Fhumanparser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fralyodio%2Fhumanparser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fralyodio%2Fhumanparser/lists"}