Giter Site home page Giter Site logo

check-my-links's Introduction

Check my links

A small CLI tool to make sure your website doesn't have any 404s or 500s:

$ check-my-links francisco.io
https://francisco.io ๐Ÿ”Ž
Status  Time    Found   Path
200     0.604s  +13     /
200     0.275s  +1      /resume
200     0.324s  +0      /blog/running-php-in-javascript
...

Output preview as described above

Features:

  • Visual hierarchy and colors; green = OK, red = problem, gray = meta information.
  • Follows UNIX conventions of separating elements with '\t'.
  • Use --help for further CLI instructions.
  • Use the flag --plain for even better and easier CLI usage. You can pipe that out easily.
  • Use the flag --links for more insight of where the broken links come from.
# Works great with other UNIX tools; e.g. print only the 404s
echo "francisco.io" | check-my-links --plain | grep 404

Getting started

Install the library with npm:

npm i check-my-links -g

Use it by giving it a url:

check-my-links francisco.io
check-my-links picnicss.com

For more help or to check the version:

check-my-links --help
check-my-links --version

--plain

Removes the header, the colors and the spaces around it. Ideal for further CLI processing:

Plain flag example

--links

Adds the link information to help debug where the broken links comes from:

Links flag example

check-my-links's People

Contributors

franciscop avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.