Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Package for edp package manage.
JavaScript Makefile

README.md

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=}
Something went wrong with that request. Please try again.