{"id":19686326,"url":"https://github.com/closeio/addresscompiler","last_synced_at":"2025-07-05T17:06:03.521Z","repository":{"id":22795956,"uuid":"26142303","full_name":"closeio/addresscompiler","owner":"closeio","description":"Compile pairs of names \u0026 email addresses into an RFC 2822 string","archived":false,"fork":false,"pushed_at":"2023-06-27T08:46:07.000Z","size":9,"stargazers_count":7,"open_issues_count":1,"forks_count":4,"subscribers_count":22,"default_branch":"master","last_synced_at":"2025-04-05T13:51:24.550Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/closeio.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-11-03T22:40:43.000Z","updated_at":"2022-12-14T22:29:55.000Z","dependencies_parsed_at":"2024-11-11T18:32:49.066Z","dependency_job_id":"c475445e-8ff9-4cf2-a522-5dbec1b8c690","html_url":"https://github.com/closeio/addresscompiler","commit_stats":{"total_commits":5,"total_committers":2,"mean_commits":2.5,"dds":"0.19999999999999996","last_synced_commit":"cb6e4b50bdad7c926cb9b382635344360350773c"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/closeio%2Faddresscompiler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/closeio%2Faddresscompiler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/closeio%2Faddresscompiler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/closeio%2Faddresscompiler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/closeio","download_url":"https://codeload.github.com/closeio/addresscompiler/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251450656,"owners_count":21591407,"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-11T18:27:32.523Z","updated_at":"2025-04-29T06:31:21.526Z","avatar_url":"https://github.com/closeio.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Address compiler\n\n`addresscompiler` is a UMD module that allows you to compile name-addr e-mail addresses in node and the browser.\n\n## Usage\n\n### node.js and AMD\n\n```js\nrequire('addresscompiler');\n```\n\n### Global context\n\n```html\n\u003c!-- exposes global variable addresscompiler --\u003e\n\u003cscript src=\"addresscompiler.js\"\u003e\u003c/script\u003e\n```\n\n### addresscompiler.compile\n\nCompiles name-address e-mail addresses into a single string.\n\n#### Examples\n\nA single address:\n\n```js\naddresscompiler.compile({\n    name: \"John Smith\",\n    address: \"john@example.com\"\n});\n\n// returns\n'John Smith \u003cjohn@example.com\u003e'\n```\n\nOr a list:\n\n```js\naddresscompiler.compile([{\n    name: \"Bach, Sebastian\",\n    address: \"sebu@example.com\"\n}, {\n    name: \"Mozzie\",\n    address: \"mozart@example.com\"\n}]);\n\n// returns\n'\"Bach, Sebastian\" \u003csebu@example.com\u003e, Mozzie \u003cmozart@example.com\u003e'\n```\n\nAnd when using groups\n\n```js\naddresscompiler.compile([{\n    name: \"Composers\",\n    group: [{\n        address: \"sebu@example.com\",\n        name: \"Bach, Sebastian\"\n    }, {\n        address: \"mozart@example.com\",\n        name: \"Mozzie\"\n    }]\n}]);\n\n// returns\n'Composers:\"Bach, Sebastian\" \u003csebu@example.com\u003e, Mozzie \u003cmozart@example.com\u003e;'\n```\n\n## See also\n\n - [addressparser](https://github.com/whiteout-io/addressparser) - similar library to do the inverse\n - [Source partially extracted from whiteout-io/mailbuild](https://github.com/whiteout-io/mailbuild/blob/1a77037e6c2438ee12b6d3e12f1f29c487147bbc/src/mailbuild.js#L661-L713)\n - [Python implementation](https://github.com/python-git/python/blob/715a6e5035bb21ac49382772076ec4c630d6e960/Lib/email/utils.py#L83-L98)\n\n## MIT License\n\n    Permission is hereby granted, free of charge, to any person obtaining a copy\n    of this software and associated documentation files (the \"Software\"), to deal\n    in the Software without restriction, including without limitation the rights\n    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n    copies of the Software, and to permit persons to whom the Software is\n    furnished to do so, subject to the following conditions:\n\n    The above copyright notice and this permission notice shall be included in\n    all copies or substantial portions of the Software.\n\n    THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n    THE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloseio%2Faddresscompiler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcloseio%2Faddresscompiler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloseio%2Faddresscompiler/lists"}