@jswork/next-url-status

1.0.3 • Public • Published

next-url-status

Detect url status code for next.

version license size download

installation

npm install -S @jswork/next-url-status

usage

import '@jswork/next-url-status';

const url = 'https://www.baidu.com/index.html';

nx.urlStatus(url).then((res) => {
  console.log(res);
});

// failed : { code: -1 }
// success: { code: 200 }

license

Code released under the MIT license.

Package Sidebar

Install

npm i @jswork/next-url-status

Weekly Downloads

7

Version

1.0.3

License

MIT

Unpacked Size

5.24 kB

Total Files

5

Last publish

Collaborators

  • afeiship