@jswork/next-content-type

1.0.12 • 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.

/@jswork/next-content-type/

    Package Sidebar

    Install

    npm i @jswork/next-content-type

    Homepage

    js.work

    Weekly Downloads

    138

    Version

    1.0.12

    License

    MIT

    Unpacked Size

    5.65 kB

    Total Files

    6

    Last publish

    Collaborators

    • afeiship