Fetch news headlines from free sources (HN, Reddit, RSS) with zero API keys
npm install headlines-cliFetch news headlines from HackerNews, Reddit, and RSS feeds with zero API keys.
``bash`
npm install -g headlines-cli
`bash`
headlines hn 15 # Top 15 HN stories
headlines hn # Top 10 (default)
`bash`
headlines reddit programming 20 # r/programming, 20 posts
headlines reddit nodejs # r/nodejs, 10 posts (default)
`javascript
const { getHNStories, getRedditPosts } = require('headlines-cli');
const stories = await getHNStories(10);
const posts = await getRedditPosts('programming', 15);
``
- ✅ No API key required
- ✅ Multiple sources (HN, Reddit)
- ✅ Zero dependencies (besides CLI helpers)
MIT