{"id":21158167,"url":"https://github.com/node-casbin/etcd-watcher","last_synced_at":"2025-07-09T12:33:47.530Z","repository":{"id":46913770,"uuid":"229906034","full_name":"node-casbin/etcd-watcher","owner":"node-casbin","description":"Etcd watcher for Node-Casbin","archived":false,"fork":false,"pushed_at":"2022-02-12T21:22:38.000Z","size":1927,"stargazers_count":2,"open_issues_count":14,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-25T03:04:30.476Z","etag":null,"topics":["authorization","authz","casbin","etcd","nodejs","watcher"],"latest_commit_sha":null,"homepage":"https://github.com/casbin/node-casbin","language":"TypeScript","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/node-casbin.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2019-12-24T08:46:58.000Z","updated_at":"2021-03-11T16:05:32.000Z","dependencies_parsed_at":"2022-09-23T08:40:31.560Z","dependency_job_id":null,"html_url":"https://github.com/node-casbin/etcd-watcher","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/node-casbin%2Fetcd-watcher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/node-casbin%2Fetcd-watcher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/node-casbin%2Fetcd-watcher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/node-casbin%2Fetcd-watcher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/node-casbin","download_url":"https://codeload.github.com/node-casbin/etcd-watcher/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225550930,"owners_count":17487212,"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":["authorization","authz","casbin","etcd","nodejs","watcher"],"created_at":"2024-11-20T12:16:53.329Z","updated_at":"2024-11-20T12:16:53.964Z","avatar_url":"https://github.com/node-casbin.png","language":"TypeScript","readme":"# etcd-watcher\n\nETCD watcher for node-casbin\n\n# Installation\n\n```shell script\n# NPM\nnpm install --save @casbin/etcd-watcher\n\n# Yarn\nyarn add @casbin/etcd-watcher\n```\n\n# Simple Example\n```typescript\nimport EtcdWatcher from '@casbin/etcd-watcher';\nimport { newEnforcer } from 'casbin';\n\n// Initialize the watcher.\nconst watcher = await EtcdWatcher.newWatcher('http://127.0.0.1:2379');\n\n// Initialize the enforcer.\nconst enforcer = await newEnforcer('examples/authz_model.conf', 'examples/authz_policy.csv');\n\nenforcer.setWatcher(watcher);\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnode-casbin%2Fetcd-watcher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnode-casbin%2Fetcd-watcher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnode-casbin%2Fetcd-watcher/lists"}