The Roselle Park Borough Council approved the measure earlier this month.
Officials tell The Star-Ledger of Newark that it's needed to help police address what council members say is the increasing problem of homeless people sleeping in public areas.
Violators could face fines and possible arrest.
The new law revises the borough's loitering ordinance, which didn't address people sleeping in public places.
The measure was passed after a hearing where some residents voiced concerns about fines and whether alternatives to arrest had been considered.
Information from: The Star-Ledger, http://www.nj.com/starledger