{"id":16813371,"url":"https://github.com/risadams/emend","last_synced_at":"2025-04-11T01:52:14.383Z","repository":{"id":39752008,"uuid":"420150006","full_name":"risadams/emend","owner":"risadams","description":"A lightweight JS-based library to inline redact e-mail addresses to protect against against scraping.","archived":false,"fork":false,"pushed_at":"2024-10-24T09:33:53.000Z","size":1550,"stargazers_count":1,"open_issues_count":2,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-25T07:14:54.433Z","etag":null,"topics":["anti-spam","email","js"],"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/risadams.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":"SUPPORT.md","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["risadams"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2021-10-22T15:28:40.000Z","updated_at":"2024-10-24T09:33:55.000Z","dependencies_parsed_at":"2023-12-12T12:28:38.578Z","dependency_job_id":"5651a485-b179-47f5-8aa7-af696b22e541","html_url":"https://github.com/risadams/emend","commit_stats":{"total_commits":67,"total_committers":4,"mean_commits":16.75,"dds":"0.14925373134328357","last_synced_commit":"00979d3da012ea5a107c86f8b639b10e58c8d2ba"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":"risadams/repo-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/risadams%2Femend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/risadams%2Femend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/risadams%2Femend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/risadams%2Femend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/risadams","download_url":"https://codeload.github.com/risadams/emend/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248328108,"owners_count":21085258,"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":["anti-spam","email","js"],"created_at":"2024-10-13T10:26:26.861Z","updated_at":"2025-04-11T01:52:14.364Z","avatar_url":"https://github.com/risadams.png","language":"JavaScript","funding_links":["https://github.com/sponsors/risadams"],"categories":[],"sub_categories":[],"readme":"# Emend\n\n[![CodeFactor](https://www.codefactor.io/repository/github/risadams/emend/badge)](https://www.codefactor.io/repository/github/risadams/emend)\n\nA simple library that will allow you to replace an e-mail address with an encoded version of the address.\n\n## Install\n\n```sh\nnpm install emend\n```\n\n## Usage\n\ninclude the library in your project:\n\n```html\n\u003chead\u003e\n  \u003cscript src=\"emend.js\"\u003e\u003c/script\u003e\n\u003c/head\u003e\n```\n\nand initialize it in your code (just before the end `body` tag):\n\n```html\n\u003cscript\u003e\n  emend.init('YOUR SALT VALUE');\n\u003c/script\u003e\n```\n\n### Option Defaults\n\n```js\n/**\n * @param {String}  explicitPrefix - The prefix to use for explicit emendations.\n * @param {String}  salt - The salt to use for emendations.\n * @param {Boolean} explicitOnly - Whether to only emend explicit elements.\n * @param {Number}  domRemoveDelay - The delay in milliseconds to remove the emendation from the DOM.\n * @param {Number}  sendClickDelay - The delay in milliseconds to send a click event to the emendation.\n */\n{\n  explicitPrefix: '@',\n  salt: '',\n  explicitOnly: false,\n  domRemoveDelay: 1200,\n  sendClickDelay: 500\n};\n```\n\n## Contribute\n\nIf you think this could be better, please [open an issue](https://github.com/risadams/Emend/issues/new)!\n\nPlease note that all interactions in this organization fall under our [Code of Conduct](CODE_OF_CONDUCT.md).\n\n## License\n\n[MIT](LICENSE) © 1996+ Ris Adams\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frisadams%2Femend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frisadams%2Femend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frisadams%2Femend/lists"}