Skip to content

lubomski/node-request-url-tester

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

node-request-url-tester

Node + Request = Local URL testing

#DESCRIPTION A little thing I hacked together to quickly test response codes of pages in a site. It's not brilliant but may be useful for others

#PREREQUISITES requires node.js and request node package (https://github.com/mikeal/request)

#USAGE Ensure var connection is changed to your web server address to test (i.e. http://localhost/mysite, http://myexample.com)

Build list of URLs to check (I haven't got this to be done automagically; been scraping sitemaps)

Add list of URLS to var URLStoTest as string (i.e. "/about-us/", "/contacts/", "/products/"

Open a terminal and type node urltester.js

It'll run and return a response code for each requested URL....

About

Node + Request = Local URL testing

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published