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

    @jswork/next-content-type

    1.0.2 • Public • Published

    next-content-type

    Get correct content type for next.

    version license size download

    installation

    npm install -S @jswork/next-content-type

    usage

    import '@jswork/next-content-type';
    
    nx.contentType('urlencoded'); 
    // application/x-www-form-urlencoded
    
    nx.contentType('multipart'); 
    // multipart/form-data
    
    nx.contentType('json'); 
    // application/json;charset=utf-8
    
    nx.contentType('raw'); 
    // text/plain

    license

    Code released under the MIT license.

    Install

    npm i @jswork/next-content-type

    DownloadsWeekly Downloads

    71

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    4.88 kB

    Total Files

    5

    Last publish

    Collaborators

    • avatar