From cf4a50cddf549b7309b83b2fdba9e5a307a33150 Mon Sep 17 00:00:00 2001 From: Adhiraj Singh Date: Sat, 22 Jan 2022 11:55:15 +0530 Subject: [PATCH] chore: update readme --- README.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 52e4a27..2c68bdd 100644 --- a/README.md +++ b/README.md @@ -26,14 +26,22 @@ To run the example script, download or clone the repo and then type the followin ## Install -Right now, the multi-device branch is only available from GitHub, install using: +Use the stable version: ``` -yarn add github:adiwajshing/baileys#multi-device +yarn add @adiwajshing/baileys +``` + +Use the edge version (no guarantee of stability, but latest fixes + features) +``` +yarn add github:adiwajshing/baileys ``` Then import in your code using: ``` ts +// for multi-device import makeWASocket from '@adiwajshing/baileys' +// for legacy web +import {makeWALegacySocket} from '@adiwajshing/baileys' ``` ## Unit Tests