View and open links/comments of Hacker News stories
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src/hcknws
.gitignore
README.md
build.cljs
package-lock.json
package.json

README.md

Hacker News CLI

Use hcknws to view and open links/comments of Hacker News stories.

Prerequisites

  1. nodejs & npm
  2. Lumo
  3. Pkg (For building binaries)

Running locally

# Install deps
$ npm install

# Run with Lumo in hcknws repo
$ lumo -c src src/hcknws/core.cljs

Build & Install from source

# Ensure deps are installed
$ npm install

# Build with Lumo
$ lumo -c src build.cljs

# Install globally with npm (within root of hcknws)
$ npm install -g

Install manually

  1. Download release (only mac at the moment)
  2. Unzip & place it on your $PATH where your shell can find it (eg. ~/bin)
  3. Set it to be executable (chmod a+x ~/bin/hcknws)

Usage

# In any dir
$ hcknws

Distributing binaries

Install Pkg, or similar.

# Example of building node 6 on mac.
$ pkg -t node6-macos-x64 -o builds/macos/hcknws package.json

# Zip for distribution
$ cd builds/macos
$ zip macos.zip hcknws