Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/afeiship/next-url-status
Detect url status code for next.
https://github.com/afeiship/next-url-status
code detect http https next request response status url
Last synced: about 1 month ago
JSON representation
Detect url status code for next.
- Host: GitHub
- URL: https://github.com/afeiship/next-url-status
- Owner: afeiship
- License: mit
- Created: 2020-12-24T07:05:46.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-01-09T08:41:24.000Z (about 4 years ago)
- Last Synced: 2024-12-10T10:26:34.919Z (about 2 months ago)
- Topics: code, detect, http, https, next, request, response, status, url
- Language: JavaScript
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# next-url-status
> Detect url status code for next.[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]## installation
```bash
npm install -S @jswork/next-url-status
```## usage
```js
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](https://github.com/afeiship/next-url-status/blob/master/LICENSE.txt).[version-image]: https://img.shields.io/npm/v/@jswork/next-url-status
[version-url]: https://npmjs.org/package/@jswork/next-url-status[license-image]: https://img.shields.io/npm/l/@jswork/next-url-status
[license-url]: https://github.com/afeiship/next-url-status/blob/master/LICENSE.txt[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-url-status
[size-url]: https://github.com/afeiship/next-url-status/blob/master/dist/next-url-status.min.js[download-image]: https://img.shields.io/npm/dm/@jswork/next-url-status
[download-url]: https://www.npmjs.com/package/@jswork/next-url-status