Natural Preference for Minification
    Wondering what’s next for npm?Check out our public roadmap! »

    x-www-form-urlencode

    0.1.1 • Public • Published

    x-www-form-urlencode

    javascript api

    var xform = require('x-www-form-urlencode')
     
    xform.encode(' %&+£€')
    // "+%25%26%2B%C2%A3%E2%82%AC"
     
    xform.decode('+%25%26%2B%C2%A3%E2%82%AC')
    // " %&+£€"
     
    xform.encode('\n');
    // "%0D%0A"
     
    xform.encode('\r')
    // "%0D%0A"
     
    xform.encode('\r\n')
    // "%0D%0A"
     
    xform.decode('%0D%0A')
    // "\n"

    Install

    npm i x-www-form-urlencode

    DownloadsWeekly Downloads

    65

    Version

    0.1.1

    License

    MIT

    Last publish

    Collaborators

    • avatar