Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@ A super lightweight library to validate if a given url is valid or not. Some add
- Jest test cases with <b>100% coverage</b>
- Promise based result

## Usage (TypeScript)
## Usage

**[Full documentation](https://opensource.stackblogger.com/link-exists/)** — API, config options, behavior notes, and more examples.

### TypeScript

```typescript
import { linkExists } from 'link-exists';
Expand Down Expand Up @@ -57,7 +61,7 @@ await linkExists('https://example.com', { details: true, timeout: 8000, method:
// response: { exists: true, status: 200, url: 'https://example.com/' }
```

## Usage (JavaScript)
### JavaScript

```javascript
const { linkExists } = require('link-exists');
Expand Down
9 changes: 9 additions & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>link-exists — docs</title>
<meta name="description" content="Lightweight URL reachability check for Node.js. API reference and examples.">
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-EQJDBY5359"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'G-EQJDBY5359');
</script>
<style>
:root {
--bg: #fafafa;
Expand Down
Loading