Do not do it I co-sleeped with my son and I had so much trouble getting him to sleep in his own bed when he got older all the way up to age 4 he is now 5 and still now and then he doesn't want to sleep by himself.
There's cosleeping and there's bedsharing. Both are safe if done correctly. My daughter slept with us until she was 18 months old. My son is 14 months old, and sleeps with us. We'll move him to a toddler bed this spring.
I have four kids and they all slept with us for first few months. I put a pillow in between my husband and baby so he has a boundary. He sleeps heavy...l do not!
I breastfeed so it works for us. If youre a heavy sleeper, on meds, under influence of alcohol I would say no...don't do it. Otherwise it's how safe you feel about it. I've had them in their own beds early on and they'd choke on spit up and so on so safety depends on parents and situation.