I have no clue how to use yarn/npm packages

I’m trying to use the generate-password package in my rails application and don’t know how to even start, the guide/examples/tutorial in the readme of the package confuses me. Can someone guide me to get me going? And then I’ll figure out the rest of the way myself