“They were actually threatening to kill me over a hat,” she said on Thursday. “I couldn’t believe it. I was calling my best friend and I was like, ‘How is this happening? It’s just a hat.’ ”

Ms. Lake said she did not take the threats seriously, attributing them to Internet trolls.

“I think I’m hitting them with their own medicine,” she said of Trump supporters. “My whole thing was, I like being different.”

The angry reactions caught the attention of news agencies, including The Staten Island Advance. A spokeswoman for the Trump campaign did not respond to an email on Thursday night.

Some people even called Home Depot to complain, she said. So many calls came in that workers stopped answering the phone. Ms. Lake said that she called in sick on Thursday and that a manager had contacted her to ask about her well-being.

But, she said, she expected to be fired from her job, which she has held for nearly two years.

In a statement, a Home Depot spokesman, Stephen Holmes, did not directly address Ms. Lake’s job status but said that the company did not allow employees to wear political buttons, caps or T-shirts, regardless of the party affiliation or candidate. He said any employee’s refusal to follow company policies could lead to termination.