Weird, I made something exactly like this about a year ago [1]. I think theirs is more complete by now. I also made a package.json generator to go along with it [2], though that is more specifically for front-end javascript packages, so it doesn't have all the fields.