title: How to notify NPM package version update to user?
body: <p>I have written a CLI tool in Node JS and published to <a href="https://www.npmjs.com/package/rapid-react" rel="nofollow noreferrer">NPM</a>. Every time it's run in terminal, I need the user to be notified of a new version available and its type (patch | minor | major) so that he/she can update it accordingly. How can I implement this?</p>
  <p>Moreover, is it possible to ask the user if he/she would like to have the package updated by itself?</p>
  <pre><code>A new version of Rapid React is available. Would you like to update it now?(Y\n)
  </code></pre>