Package for edp package manage.
JavaScript Makefile
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
cli
lib
test
.gitignore
.jshintrc
.travis.yml
README.md
index.js
package.json

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=}