From fdc3a149589840f26c28c552c3df04626d6cebdd Mon Sep 17 00:00:00 2001 From: Boris K Date: Sun, 30 Jul 2023 09:46:41 +0200 Subject: [PATCH] Add installation section to README --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index eb2c372b..d4ff1691 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,16 @@ npx http-server -o # A browser will open, navigate to example.html ``` +## Installation + +```bash +# With npm +npm i home-assistant-js-websocket + +# With yarn +yarn add home-assistant-js-websocket +``` + ## Usage To initialize a connection, you need an authentication token for the instance that you want to connect to. This library implements the necessary steps to guide the user to authenticate your website with their Home Assistant instance and give you a token. All you need from the user is the url of their instance.