Fixing “inherits” package.json file

The “inherits” module (written by the creator of npm, Isaac Z. Schlueter) is quite an old piece of code (First published in 2011). It has over 1 million downloads per day, and over 25 million downloads last month! One might think that a popular module like this one shouldn’t have any errors in them. Well… after looking at its package.json file, I noticed that it didn’t follow npm standards.

As you can see, there were a few missing fields (Even though they aren’t required by default). Although the repository field had a valid link, it was missing the “type” field. Now, why would he create a package.json file that doesn’t follow his own standards? Who knows really. Being an old module, I believe that this is the main cause for this oversight (The standards might have changed since 2011). If something is working the way you expect it to, then there’s no reason to believe you missed something.

After looking at other npm modules, I noticed that over 40% of them have package.json files that doesn’t follow npm standards. What if someone were to write a bot that can check for invalid package.json file and fix them? Now that would be something 🙂


  1. Hey great blog! Does running a blog similar to this take a massive amount work?
    I’ve virtually no expertise in programming however I had been hoping to start my
    own blog in the near future. Anyhow, should you have any suggestions or tips
    for new blog owners please share. I understand this is off topic but I simply had
    to ask. Cheers!

    1. Hello! Thank you for leaving a comment 🙂
      Setting up a blog like this is quite easy! No programming required 🙂
      There are many ways to setup a blog. If you already own a domain and a host (Eg. Go Daddy, hostgator, etc), you can download the wordpress package here ( and install it to your domain. If you’re unsure how to do it, contact your host provider and they will help you set it up 🙂
      Now if this sounds complicated (and it is) you can go the easy route and get a free wordpress blog (like this one) here ( Select “free” and you should have a blog ready in less then 5 minutes!

  2. First off I want to say excellent blog! I had a quick question which I’d like to ask if you do not mind.
    I was interested to find out how you center yourself and clear
    your head before writing. I have had trouble clearing my mind in getting my ideas
    out there. I do take pleasure in writing but it just seems
    like the first 10 to 15 minutes tend to be wasted simply just
    trying to figure out how to begin. Any recommendations or hints?
    Thank you!

    1. Hi Terasi, thanks for reaching out 🙂
      What I usually do is, I write whatever comes to mind and not caring about the order. Once I think I have enough info on the topic I’m writing about, I re-read what I wrote and see if I missed anything. Once I’m satisfied, I then start to structure my post and add/remove information so that all topics makes sense (Also, pictures are always good to have).
      Hopefully that helped you 🙂
      Thanks for reading!

Leave a Reply

Your email address will not be published. Required fields are marked *