chore(release): 1.0.0 [skip ci] # 1.0.0 (2020-11-12) ### Bug Fixes * export and docs ([8ad9031](https://github.com/node-casbin/etcd-watcher/commit/8ad903133425965289f2f5e75ddef51ae5b8c437)) * upgrade TypeScript for building ([9e61e9f](https://github.com/node-casbin/etcd-watcher/commit/9e61e9f3100fbba6dd31e69da2258395251a26c3))
ETCD watcher for node-casbin
# NPM npm install --save @casbin/etcd-watcher # Yarn yarn add @casbin/etcd-watcher
import EtcdWatcher from '@casbin/etcd-watcher'; import { newEnforcer } from 'casbin'; // Initialize the watcher. const watcher = await EtcdWatcher.newWatcher('http://127.0.0.1:2379'); // Initialize the enforcer. const enforcer = await newEnforcer('examples/authz_model.conf', 'examples/authz_policy.csv'); enforcer.setWatcher(watcher);