Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

linkcheck-bin

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

linkcheck-bin

An npm-installable wrapper for @filiph's linkcheck, a reasonably fast link checker.

  • 3.0.0-1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
39
decreased by-50%
Maintainers
1
Weekly downloads
 
Created
Source

npm-installable wrapper for @filiph's linkcheck.

A lot of inspiration (and some code) came from @jakejarvis' hugo-extended.

Installation

npm install linkcheck-bin --save-dev
# or...
yarn add linkcheck-bin --dev

This package's version numbers align with linkcheck's — linkcheck-bin@2.0.20 installs linkcheck 2.0.20, for example.

Usage

CLI / package.json script

// package.json:

{
  // ...
  "scripts": {
    "linkcheck": "linkcheck --external --check-anchors https://tylerbutler.com"
  },
  "devDependencies": {
    "linkcheck-bin": "^2.0.20"
  }
  // ...
}
$ npm run linkcheck

Done crawling.

https://tylerbutler.com
- (233:225) '1' => https://tylerbutler.com#fn:1 (HTTP 200 but missing anchor)

https://tylerbutler.com/
- (233:225) '1' => https://tylerbutler.com/#fn:1 (HTTP 200 but missing anchor)

https://tylerbutler.com/2004/11/tyler-a-novelist/
- (189:55) 'on this ..' => https://tylerbutler.com/tag/nanowrimo (HTTP 404)

...

Errors. Checked 8309 links, 317 destination URLs (483 ignored), 11 have errors, 20 have warnings.

via JS API:

// version.js:

import linkcheck from "linkcheck-bin";
import { execFile } from "child_process";

execFile(linkcheck, ["--version"], (error, stdout) => {
  console.log(stdout);
});
$ node version.js

linkcheck version 2.0.20

License

This project is distributed under the MIT License. linkcheck is also distributed under the MIT License.

Keywords

FAQs

Package last updated on 03 Apr 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc