@jswork/next-content-type
v1.0.12
Published
Get correct content type for next.
Downloads
297
Readme
next-content-type
Get correct content type for next.
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.