I am using bitcoinjs-lib for bitcoin key pair generation.
I got enough examples to generate legacy address and segwit address from the public key, but for bech32 address I could not found anything.
P2PKH which begin with the number 1,
eg: 1BvBMSEYstWetqTFn5Au4m4GFg7xJaNVN2.
P2SH type starting with the number 3,
eg: 3J98t1WpEZ73CNmQviecrnyiWrnqRhWNLy.
Bech32 type starting with bc1,
eg: bc1qar0srrr7xfkvy5l643lydnw9re59gtzzwf5mdq.
Thank you for the help.