rafaelrinaldi / hn-cli Goto Github PK
View Code? Open in Web Editor NEW:newspaper: CLI to browse Hacker News
License: MIT License
:newspaper: CLI to browse Hacker News
License: MIT License
If anyone has any ideas on why the content doesn't display or things to try under Cygwin. I have to use windows at work unfortunately ๐ฆ
Write some unit tests to make sure that at least the core features are reliable.
After installing the package via npm , I executed hn
It shows up the following error message in terminal
/usr/lib/node_modules/@rafaelrinaldi/hn-cli/bin/hn-cli:6
const cli = require('../cli');
^^^^^
SyntaxError: Use of const in strict mode.
at Module._compile (module.js:439:25)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:902:3
I using Ubuntu 14.04 LTS.
When running over SOCKS proxies on my corporate network, I received Request timeout โน Might want to try again?
.
You should support the standard proxy environmental variables:
http_proxy
https_proxy
I believe using got
you can pass tunnel
in to go through proxies
const got = require('got');
const tunnel = require('tunnel');
got(url, {
agent: tunnel.httpOverHttp({
proxy: {
host: 'localhost'
}
})
});
Hi,
Thanks. Really nice program. It would be nice to have a refresh feature, maybe with "r" key.
The real important feature of HN are (IMHO) the comments.
So it would be nice to see how many comments and a shortcut to jump to it.
Having previously visited stories marked as read would be nice. Maybe a symbol or even through text decoration should do it.
I would like to know if it is possible to order the news by time, should it be good to get the news up to date.
Could i create an PR for that issue?
Add a feature to fetch only the latest (as in most recent) stories.
Thinking about it now, does --keep-open
even make sense? I mean, you can close the program by hitting the escape key whenever you want anyways.
I'm really close to kill this flag.
Thoughts?
Hi,
If you could check for BROWSER environment variable and use that as the default for viewing, it would be great. My goal is to have commandline apps stay within an xterm. Personally, I'd suggest using 'links' but to each their own. :) thanks!
Implement a "jump to line" feature, similar to :n
in Vim.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.