1.0.12 • Published 2 years ago
@jswork/next-content-type v1.0.12
next-content-type
Get correct content type for next.
installation
npm install -S @jswork/next-content-typeusage
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/plainlicense
Code released under the MIT license.