Skip to content

liajoy/hiway

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hiway

Detect and extract dependents of a file.

Install

$ yarn add hiway

Usage

hiway detects dependents of entryFile and copy them to the outputDir.

const hiway = require('hiway')

// outputDir is  __output__ by default
const depsPath = await hiway(entryPath, outputDir)

Or use cli:

$ hiway entryPath --out outputDir

It's useful(maybe) when you do these works:

  • Extract some part from a fat library. For example, extract THREE.Geometry from Three.js.
  • Refactor directory structure, you can get related files easily.

About

Extract dependencies of a file.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published