1.0.7 • Published 5 years ago

npm-update-module v1.0.7

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

Deprecated. Do not use this module for CLI updates anymore.

Command your global CLI module to update itself.

For example:

Reference package: Commander

  const program = require('commander');    
  const package = require(path.join('npm-update-module'));


  program
    .command('update')
    .alias('u')
    .description('Update moduleName')
    .action(() => {
      package.update('moduleName');              # Pass module name as string. 
    }).on('--help', () => {
      console.log('  Example: $ moduleName update');
    });
1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago