ensure-module-latest

1.0.11 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i ensure-module-latest

Weekly Downloads

0

Version

1.0.11

License

ISC

Unpacked Size

5.24 kB

Total Files

4

Last publish

Collaborators

  • antfoot