Skip to content

hoperyy/ensure-module-latest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Npm Version Node Version

What is ensure-module-latest

This tool will ensure npm module exists and being latest at local.

How to use

const ensureModuleLatest = require('ensure-module-latest');

ensureModuleLatest({
    moduleName: 'zepto',
    cwd: process.cwd(),
    registry: 'https://registry.npmjs.org/' 
});

@params

  • moduleName
    • Type: String
    • Desc: npm module
    • default: ''
  • cwd
    • Type: String
    • Desc: dir path to install module
    • default: process.cwd()
  • registry
    • Type: String
    • Desc: npm registry
    • default: 'https://registry.npmjs.org/'
  • beforeInstall
    • Type: Function
    • Desc: do something before install module
    • default: (cwd) => {}

@return Promise Object

LICENSE

MIT

About

ensure npm module exists and being latest at local

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published