Skip to content

barretlee/deps-matcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deps Matcher

Match JS file's all dependencies.

Install

npm install deps-matcher;

Usage

const DepsMatcher = require('deps-matcher');

const matches = new DepsMatcher([
  path.join(__dirname, '../lib/index.js'),
  path.join(__dirname, '../lib/index.css')
].filter(DepsMatcher.isJSFile));

console.log(JSON.stringify(matches, null, 2));

Attention

  • Promise the input are absolute path;

Lisence

MIT Lisence.

About

Match JS file's all dependencies.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published