You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please remember to add this file to your `.gitignore`! Calling `zulip({ zuliprc: 'zuliprc' })` will read this file and then pass a configured zulip object to `.then()`.
57
+
Please remember to add this file to your `.gitignore`! Calling `await zulip({ zuliprc: 'zuliprc' })` will read this file.
60
58
61
59
```js
62
60
constzulip=require('zulip-js');
63
61
constpath=require('path');
64
62
constzuliprc=path.resolve(__dirname, 'zuliprc');
65
-
zulip({ zuliprc }).then((zulip) => {
63
+
(async () => {
64
+
constzulip=awaitzulip({ zuliprc });
66
65
// The zulip object now contains the config from the zuliprc file
0 commit comments