Have ideas to improve npm?Join in the discussion! »

    strict-uri-encode
    DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/strict-uri-encode package

    2.0.0 • Public • Published

    strict-uri-encode Build Status

    A stricter URI encode adhering to RFC 3986

    Install

    $ npm install --save strict-uri-encode
    

    Usage

    const strictUriEncode = require('strict-uri-encode');
     
    strictUriEncode('unicorn!foobar');
    //=> 'unicorn%21foobar'
     
    strictUriEncode('unicorn*foobar');
    //=> 'unicorn%2Afoobar'

    API

    strictUriEncode(string)

    string

    Type: string, number

    String to URI encode.

    License

    MIT © Kevin Mårtensson

    Install

    npm i strict-uri-encode

    DownloadsWeekly Downloads

    10,852,218

    Version

    2.0.0

    License

    MIT

    Last publish

    Collaborators

    • avatar