项目作者: barretlee

项目描述 :
Match JS file's all dependencies.
高级语言: JavaScript
项目地址: git://github.com/barretlee/deps-matcher.git
创建时间: 2017-11-21T09:52:43Z
项目社区:https://github.com/barretlee/deps-matcher

开源协议:

下载


Deps Matcher

Match JS file’s all dependencies.

Install

  1. npm install deps-matcher;

Usage

  1. const DepsMatcher = require('deps-matcher');
  2. const matches = new DepsMatcher([
  3. path.join(__dirname, '../lib/index.js'),
  4. path.join(__dirname, '../lib/index.css')
  5. ].filter(DepsMatcher.isJSFile));
  6. console.log(JSON.stringify(matches, null, 2));

Attention

  • Promise the input are absolute path;

Lisence

MIT Lisence.