edp-package

0.7.1 • Public • Published

edp-package

Build Status Dependencies Status

Package for edp package manage.

Usage

var edpPackage = require( 'edp-package' );
edpPackage.importFromRegistry( 
    'er', 
    process.cwd(), 
    function ( error, pkg ) {
        if ( !error ) {
             console.log( 'ER is imported!' );
        }
    } 
);

API

getImported( projectDir )

获取当前已导入的包列表.

  • projectDir {string}

importFromFile( file, projectDir, callback )

从本地文件导入包.

  • file {string}
  • projectDir {string=}
  • callback {Function=}

importFromRegistry( name, projectDir, callback )

从registry导入包.

  • name {string}
  • projectDir {string=}
  • callback {Function=}

Readme

Keywords

none

Package Sidebar

Install

npm i edp-package

Weekly Downloads

7

Version

0.7.1

License

none

Last publish

Collaborators

  • ecomfe-core