Skip to content

Latest commit

 

History

History
16 lines (12 loc) · 579 Bytes

File metadata and controls

16 lines (12 loc) · 579 Bytes

hackernews

Requires Node and npm (tested with node v10.10.0 and npm 6.4.1 in Linux environment)

install:
npm install request request-promise jsdom

run:
./hackernews [--posts n]
where 1 <= n <= 100

libraries:

  • request - make http calls, download hacker news html
  • request-promise - use request with promises rather than callbacks
  • jsdom - parse html page into DOM before extracting required data "# TrueLayer" git init git add README.md git commit -m "first commit" git remote add origin https://github.com/SquiffyK7/TrueLayer.git git push -u origin master