Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    antispambotjspublic

    Antispambot JS

    JavaScript implementation of WordPress PHP function. Converts selected email addresses characters to HTML entities to block spam bots. Not all characters in the email address are converted: the selection is random and changes each time the function is called.

    Installation

    $ npm i --save antispambotjs
    

    Usage

    antispambot(emailAddress, hexEncoding);
    

    Example

    import antispambot from 'antispambotjs';
    
    let encoded = antispambot('test@test.com');
    
    console.log(encoded); // test@test.com
    

    License

    MIT

    install

    npm i antispambotjs

    Downloadsweekly downloads

    4

    version

    0.0.3

    license

    MIT

    repository

    githubgithub

    last publish

    collaborators

    • avatar