{"id":16824356,"url":"https://github.com/dlion/toxiproxy-node","last_synced_at":"2025-04-11T03:20:29.081Z","repository":{"id":34464829,"uuid":"38401240","full_name":"dlion/toxiproxy-node","owner":"dlion","description":"Toxiproxy Node Client","archived":false,"fork":false,"pushed_at":"2015-07-02T17:37:55.000Z","size":109,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-04-25T17:42:50.224Z","etag":null,"topics":["nodejs","toxiproxy","toxiproxy-node"],"latest_commit_sha":null,"homepage":"","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/dlion.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":"2015-07-01T23:58:20.000Z","updated_at":"2020-03-16T15:51:21.000Z","dependencies_parsed_at":"2022-08-23T01:20:48.210Z","dependency_job_id":null,"html_url":"https://github.com/dlion/toxiproxy-node","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dlion%2Ftoxiproxy-node","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dlion%2Ftoxiproxy-node/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dlion%2Ftoxiproxy-node/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dlion%2Ftoxiproxy-node/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dlion","download_url":"https://codeload.github.com/dlion/toxiproxy-node/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248333965,"owners_count":21086291,"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":["nodejs","toxiproxy","toxiproxy-node"],"created_at":"2024-10-13T11:10:50.448Z","updated_at":"2025-04-11T03:20:29.054Z","avatar_url":"https://github.com/dlion.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# toxiproxy-node\n\n[Toxiproxy](https://github.com/shopify/toxiproxy) Node Client\n\n## Install\n`npm install toxiproxy-node`\n\n## Usage Example\n```js\nvar toxiproxy = require('toxiproxy-node');\n\n//New Client\nvar client = new toxiproxy('localhost:8474');\n\n//New Proxy\nvar redis = client.NewProxy({\n  name: 'Redis',\n  listen: '127.0.0.1:26375',\n  upstream: '127.0.0.1:6375'\n});\n\n//Create redis Proxy\nredis.Create(function(err, body) {\n  if(!err) {\n    //Set Latency\n    redis.SetToxic('latency', 'downstream', {\n      enabled: true,\n      latency: 1000\n    }, function(err, body) {\n      //Show Redis downstream info\n      redis.Toxics('downstream', function(err, body) {\n        if(!err) {\n          console.log(body);\n          //Delete Redis Proxy\n          redis.Delete(function(){});\n        }\n      });\n    });\n  }\n});\n```\n\n## Author\n* Domenico Luciani\n* http://dlion.it\n* domenicoleoneluciani@gmail.com\n\n# License\nMIT 2015 Domenico Luciani domenicoleoneluciani@gmail.com\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdlion%2Ftoxiproxy-node","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdlion%2Ftoxiproxy-node","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdlion%2Ftoxiproxy-node/lists"}