Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 737 Bytes

README.md

File metadata and controls

28 lines (20 loc) · 737 Bytes

typescript-dependency-util

Build Status

Features

  • Sort typescript files in order of dependency.
  • Find exported elements (classes, modules, variables) in typescript files.
  • Find usage of exported elements in files.
  • Create a dependency graph.

Installation

npm install --save-dev typescript-dependency-util

Usage

var tdu = require('typescript-dependency-util');
var glob = require('glob');

var sourceFiles = glob.sync('./src/**/*.ts');
var sortedArrayOfTypescriptFiles = tdu.createSortedFileList(sourceFiles);