@jswork/next-fetch-with-content-type

1.0.10 • Public • Published

next-fetch-with-content-type

Request middleware for contentType.

version license size download

installation

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

usage

import '@jswork/next-fetch-with-content-type';

const betterFetch = nx.fetchWithContentType(fetch);
betterFetch('https://api.github.com/users/afeiship', { contentType: 'urlencoded' }).then(
  (res) => {
    // console.log(res);
  }
);

license

Code released under the MIT license.

Package Sidebar

Install

npm i @jswork/next-fetch-with-content-type

Weekly Downloads

2

Version

1.0.10

License

MIT

Unpacked Size

5.6 kB

Total Files

5

Last publish

Collaborators

  • afeiship