Skip to content

codereviewvideos/link-visitor-typescript

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 

See https://codereviewvideos.com/url-checker/typescript/

To run

  1. Clone the project
  2. npm i
  3. node dist/index.js http://example.com

If it all works, you should see something like:

➜  link-visitor-typescript git:(main) node dist/index.js http://example.com
(node:2633895) ExperimentalWarning: The Fetch API is an experimental feature. This feature could change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
[
  {
    url: 'http://example.com/',
    status: 200,
    statusText: 'OK',
    ok: true,
    redirected: false,
    headers: {
      'accept-ranges': 'bytes',
      age: '466460',
      'cache-control': 'max-age=604800',
      'content-encoding': 'gzip',
      'content-length': '648',
      'content-type': 'text/html; charset=UTF-8',
      date: 'Thu, 22 Dec 2022 16:25:42 GMT',
      etag: '"3147526947+gzip"',
      expires: 'Thu, 29 Dec 2022 16:25:42 GMT',
      'last-modified': 'Thu, 17 Oct 2019 07:18:26 GMT',
      server: 'ECS (nyb/1D10)',
      vary: 'Accept-Encoding',
      'x-cache': 'HIT'
    }
  }
]

Enjoy.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published