'How to make my NPM package auto-update for users who install it

I'm building a nodejs package, and am simply wondering if it's possible to have it update automatically for users who install this package.

A number of questions asked already seem to be either very specific use cases for the creator of the package or answers for how a user of an npm package can setup npm update.

But I'm curious to know if there's a way for the developer of the package to make it auto update for their end users. It's ok if the user of the package has to do a special command like with homebrew:

brew auto update <package>



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source