npm-update-module

Command your global module to update itself

Do not use this package to update globally installed CLIs anymore.
Last updated a year ago by marvindanig .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install npm-update-module 
SYNC missed versions from official npm registry.

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');
    });

Current Tags

  • 1.0.7                                ...           latest (a year ago)

8 Versions

  • 1.0.7 [deprecated]           ...           a year ago
  • 1.0.6 [deprecated]           ...           a year ago
  • 1.0.5 [deprecated]           ...           4 years ago
  • 1.0.4 [deprecated]           ...           4 years ago
  • 1.0.3 [deprecated]           ...           4 years ago
  • 1.0.2 [deprecated]           ...           4 years ago
  • 1.0.1 [deprecated]           ...           4 years ago
  • 1.0.0 [deprecated]           ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 2
Dependencies (2)
Dev Dependencies (0)
None
Dependents (1)

Copyright 2014 - 2016 © taobao.org |