{"id":19240937,"url":"https://github.com/binocarlos/etcdx","last_synced_at":"2025-02-23T14:27:23.729Z","repository":{"id":12708943,"uuid":"15381453","full_name":"binocarlos/etcdx","owner":"binocarlos","description":"node client for etcd v2 that adheres to waitIndex for watching","archived":false,"fork":false,"pushed_at":"2013-12-22T23:03:53.000Z","size":132,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-05T10:50:45.700Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/binocarlos.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-12-22T20:17:55.000Z","updated_at":"2015-02-20T12:08:42.000Z","dependencies_parsed_at":"2022-09-20T12:51:56.331Z","dependency_job_id":null,"html_url":"https://github.com/binocarlos/etcdx","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/binocarlos%2Fetcdx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binocarlos%2Fetcdx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binocarlos%2Fetcdx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binocarlos%2Fetcdx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/binocarlos","download_url":"https://codeload.github.com/binocarlos/etcdx/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240326601,"owners_count":19783877,"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-09T17:09:37.424Z","updated_at":"2025-02-23T14:27:23.701Z","avatar_url":"https://github.com/binocarlos.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# etcdx\n\n![Build status](https://api.travis-ci.org/binocarlos/etcdx.png)\n\nnode client for etcd v2 that adheres to waitIndex for watching.\n\n## example\n\n```js\nvar etcdx = require('etcdx');\nvar client = new etcdx();\n\nclient.watch('/mongo_servers', true, function(error, server){\n\t// server is 'hello' then 'hello2'\n})\n\nclient.set('/mongo_servers/server1', 'hello');\nclient.set('/mongo_servers/server1', 'hello2');\n```\n\n## install\n\n```\n$ npm install etcdx\n```\n\n## methods\n\n### configure(opts)\n\nset the following options for further requests to the etcd server:\n\n * protocol\n * host\n * port\n * version\n\n## watch(key, recursive, trigger)\nrun 'trigger' each time a value at or below 'key' changes\n\n'recursive' controls how deep we are watching\n\nthis function looks at the global etcd waitIndex in case a value has changed in-between our watch requests\n\n## get(key, done)\nreturn the value of 'key'\n\n## set(key, value, done)\nset the value of 'key'\n\n## set_ttl(key, value, ttl, done)\nset the value of 'key' for 'ttl' seconds\n\n## del(key, done)\nremove 'key'\n\n## ls(key, recursive, done)\nlist the entries below 'key' - recursive follows nested directories\n\n## mkdir(key, done)\ncreate a directory (with no value) at 'key'\n\n## rmdir(key, done)\nremove all values below key\n\n\n## licence\n\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbinocarlos%2Fetcdx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbinocarlos%2Fetcdx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbinocarlos%2Fetcdx/lists"}