diff --git a/README.md b/README.md index c9f079b..fbcbfe9 100644 --- a/README.md +++ b/README.md @@ -7,4 +7,21 @@ ``` ## Usage -Check `demo/example.js` +``` +const ewelink = require('ewelink-api'); + +(async () => { + + const conn = new ewelink({ + email: '', + password: '', + }); + + /* get all devices */ + const devices = await conn.getDevices(); + console.log(devices); + +})(); +``` + +Check `demo/example.js` for more examples. \ No newline at end of file