{"id":20159717,"url":"https://github.com/nowsecure/nsq-bundle","last_synced_at":"2025-04-09T23:40:24.173Z","repository":{"id":65465857,"uuid":"44255571","full_name":"nowsecure/nsq-bundle","owner":"nowsecure","description":null,"archived":false,"fork":false,"pushed_at":"2016-02-13T00:29:23.000Z","size":10,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-03-07T10:26:23.199Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nowsecure.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-10-14T15:01:46.000Z","updated_at":"2021-01-13T19:47:44.000Z","dependencies_parsed_at":"2023-01-25T08:45:29.892Z","dependency_job_id":null,"html_url":"https://github.com/nowsecure/nsq-bundle","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/nowsecure%2Fnsq-bundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nowsecure%2Fnsq-bundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nowsecure%2Fnsq-bundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nowsecure%2Fnsq-bundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nowsecure","download_url":"https://codeload.github.com/nowsecure/nsq-bundle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248131465,"owners_count":21052819,"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":[],"created_at":"2024-11-14T00:09:42.721Z","updated_at":"2025-04-09T23:40:24.136Z","avatar_url":"https://github.com/nowsecure.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nsq-bundle\n\n[![travis](https://travis-ci.org/nowsecure/nsq-bundle.svg)](https://travis-ci.org/nowsecure/nsq-bundle)\n\nInstalls a nsq bundle and exposes the following binaries/scripts\n\n* `nsqd`\n* `nsqlookupd`\n* `nsqadmin`\n* `kill-port`\n\n## Usage\n\nInstall it globally\n\n```\n$ npm i nsq-bundle -g\n```\n\nRun `nsqd`\n\n```\n$ nsqd -tcp-address=:5150 -http-address=:5151 -verbose=true\n[nsqd] 2015/10/14 16:55:42.106852 nsqd v0.3.6 (built w/go1.5.1)\n[nsqd] 2015/10/14 16:55:42.106965 ID: 498\n[nsqd] 2015/10/14 16:55:42.107006 NSQ: persisting topic/channel metadata to nsqd.498.d\nat\n[nsqd] 2015/10/14 16:55:42.114307 TCP: listening on [::]:5150\n[nsqd] 2015/10/14 16:55:42.114514 HTTP: listening on [::]:5151\n```\n\nThis module is also useful as a `devDependency` if you want to run `nsqd` during tests etc.\n\n```\n$ npm i nsq-bundle -D\n```\n\nThen we can add some scripts to `package.json`, e.g.\n\n```json\n{\n  \"name\": \"mymodule\",\n  \"scripts\": {\n    \"pretest\": \"nsqd -tcp-address=:5150 -http-address=:5151 \u0026\",\n    \"test\": \"tape test.js\",\n    \"posttest\": \"kill-port 5150\"\n  },\n  \"devDependencies\": {\n    \"nsq-bundle\": \"^1.1.0\",\n    \"tape\": \"^4.2.1\"\n  }\n}\n```\n\nThis is a simple setup where the `pretest` script will fire up `nsqd` before the tests and the `posttest` script will kill the `nsqd` process afterwards.\n\n## License\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnowsecure%2Fnsq-bundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnowsecure%2Fnsq-bundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnowsecure%2Fnsq-bundle/lists"}