Giter Club home page Giter Club logo

edp-package's Introduction

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

defineDependency( name, version, importDir )

添加依赖包声明.

  • name {string}
  • version {string}
  • importDir {string=}

fetch( name, toDir, callback )

从registry获取包.

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

getDefinedDependencies( importDir )

获取已定义的依赖包.

  • importDir {string}

getImported( importDir )

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

  • importDir {string}

importDependencies( name, version, importDir, callback )

为包导入其依赖.

  • name {string}
  • version {string}
  • importDir {string=}
  • callback {Function=}

importFromFile( file, importDir, callback )

从本地文件导入包.

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

importFromRegistry( name, importDir, callback )

从registry导入包.

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

importFromPackage( file, options )

package.json中导入包

  • file {string}
  • options {Object=}
  • options.older {boolean=}
  • options.saveDev {boolean=}
  • options.importDir {string=}
  • options.callback {Function=}

search( keyword, callback )

查询registry中的包.

  • keyword {string=}
  • callback {Function=}

update( name, importDir, callback )

更新包.

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

edp-package's People

Contributors

erik168 avatar leeight avatar ielgnaw avatar firede avatar treelite avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.