edp-package
v0.7.1
Published
Package for edp package manage
Downloads
36
Readme
edp-package
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=}