{"id":18539071,"url":"https://github.com/simov/slack-command-hackernews","last_synced_at":"2025-05-15T02:13:49.006Z","repository":{"id":57362685,"uuid":"93240743","full_name":"simov/slack-command-hackernews","owner":"simov","description":"HackerNews /slash Command for Slack","archived":false,"fork":false,"pushed_at":"2018-11-22T12:49:38.000Z","size":43,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-22T07:20:04.119Z","etag":null,"topics":["slack"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/simov.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-06-03T10:20:15.000Z","updated_at":"2018-11-22T12:49:40.000Z","dependencies_parsed_at":"2022-09-13T21:10:50.042Z","dependency_job_id":null,"html_url":"https://github.com/simov/slack-command-hackernews","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simov%2Fslack-command-hackernews","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simov%2Fslack-command-hackernews/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simov%2Fslack-command-hackernews/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simov%2Fslack-command-hackernews/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simov","download_url":"https://codeload.github.com/simov/slack-command-hackernews/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254259444,"owners_count":22040822,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["slack"],"created_at":"2024-11-06T19:46:07.192Z","updated_at":"2025-05-15T02:13:48.955Z","avatar_url":"https://github.com/simov.png","language":"JavaScript","readme":"\n\n# slack-command-hackernews\n\n[![npm-version]][npm] [![travis-ci]][travis] [![coveralls-status]][coveralls]\n\n\u003e HackerNews /slash Command for Slack\n\n## middleware\n\n```js\nvar express = require('express')\nvar hackernews = require('slack-command-hackernews')\nvar auth = {token: 'hook token'}\n\nexpress()\n  .use(hackernews(auth))\n  .listen(3000)\n```\n\n## api\n\n```js\nvar express = require('express')\nvar parser = require('body-parser')\nvar hackernews = require('slack-command-hackernews')\nvar auth = {token: 'hook token'}\n\nexpress()\n  .use(parser.urlencoded({extended: true}))\n  .use((req, res) =\u003e {\n    var input = req.body\n    res.json(hackernews.respond({auth, input}))\n    hackernews.query({auth, input}).catch(console.error)\n  })\n  .listen(3000)\n```\n\n## command\n\nOption                | Value\n:--                   | :--\nCommand               | `/hackernews`\nRequest URL           | `https://website.com/hackernews`\nShort Description     | `Query HackerNews`\nUsage Hint            | `[new|top|best] [count]`\n\n## example\n\nCommand               | Description\n:--                   | :--\n`/hackernews`         | the 5 newest stories\n`/hackernews new 5`   | the 5 newest stories\n`/hackernews top 3`   | the top 3 stories\n`/hackernews best 10` | the 10 best stories\n`/hackernews help`    | help message\n\n\n  [npm-version]: https://img.shields.io/npm/v/slack-command-hackernews.svg?style=flat-square (NPM Package Version)\n  [travis-ci]: https://img.shields.io/travis/simov/slack-command-hackernews/master.svg?style=flat-square (Build Status - Travis CI)\n  [coveralls-status]: https://img.shields.io/coveralls/simov/slack-command-hackernews.svg?style=flat-square (Test Coverage - Coveralls)\n\n  [npm]: https://www.npmjs.com/package/slack-command-hackernews\n  [travis]: https://travis-ci.org/simov/slack-command-hackernews\n  [coveralls]: https://coveralls.io/github/simov/slack-command-hackernews\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimov%2Fslack-command-hackernews","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimov%2Fslack-command-hackernews","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimov%2Fslack-command-hackernews/lists"}