emend

所属分类:其他
开发工具:JavaScript
文件大小:0KB
下载次数:0
上传日期:2023-11-19 02:43:00
上 传 者sh-1993
说明:  一个基于JS的轻量级库,用于内联编校电子邮件地址,以防止抓取。
(A lightweight JS-based library to inline redact e-mail addresses to protect against against scraping.)

文件列表:
.editorconfig (167, 2023-12-20)
.jshintrc (6220, 2023-12-20)
.prettierrc (138, 2023-12-20)
CHANGELOG.md (429, 2023-12-20)
CODE_OF_CONDUCT.md (3391, 2023-12-20)
CONTRIBUTING.md (415, 2023-12-20)
LICENSE (1067, 2023-12-20)
SECURITY.md (656, 2023-12-20)
SUPPORT.md (316, 2023-12-20)
dist/ (0, 2023-12-20)
dist/emend.js (15448, 2023-12-20)
example/ (0, 2023-12-20)
example/index.html (765, 2023-12-20)
gulpfile.js (890, 2023-12-20)
package-lock.json (483774, 2023-12-20)
package.json (942, 2023-12-20)
src/ (0, 2023-12-20)
src/emend.js (6532, 2023-12-20)

# Emend [![CodeFactor](https://www.codefactor.io/repository/github/risadams/emend/badge)](https://www.codefactor.io/repository/github/risadams/emend) A simple library that will allow you to replace an e-mail address with an encoded version of the address. ## Install ```sh npm install emend ``` ## Usage include the library in your project: ```html ``` and initialize it in your code (just before the end `body` tag): ```html ``` ### Option Defaults ```js /** * @param {String} explicitPrefix - The prefix to use for explicit emendations. * @param {String} salt - The salt to use for emendations. * @param {Boolean} explicitOnly - Whether to only emend explicit elements. * @param {Number} domRemoveDelay - The delay in milliseconds to remove the emendation from the DOM. * @param {Number} sendClickDelay - The delay in milliseconds to send a click event to the emendation. */ { explicitPrefix: '@', salt: '', explicitOnly: false, domRemoveDelay: 1200, sendClickDelay: 500 }; ``` ## Contribute If you think this could be better, please [open an issue](https://github.com/risadams/Emend/issues/new)! Please note that all interactions in this organization fall under our [Code of Conduct](CODE_OF_CONDUCT.md). ## License [MIT](LICENSE) 1996+ Ris Adams

近期下载者

相关文件


收藏者