GithubHelp home page GithubHelp logo

nicolas6422 / detective-typescript Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dependents/detective-typescript

0.0 0.0 0.0 233 KB

Get the dependencies of a TypeScript module

JavaScript 100.00%

detective-typescript's Introduction

detective-typescript Build Status npm npm

Get the dependencies of TypeScript module

npm install detective-typescript

Usage

var detective = require('detective-typescript');
var mySourceCode = fs.readFileSync('myfile.ts', 'utf8');

// Pass in a file's content or an AST
var dependencies = detective(mySourceCode);

Options

  • skipTypeImports (default: false) Skips imports that only imports types
  • mixedImports: (default: false) Include CJS imports in dependency list
  • skipAsyncImports: (default: false) Whether or not to omit async imports (import('foo'))
  • jsx: (default: false) Enable parsing of JSX

License

MIT

detective-typescript's People

Contributors

pahen avatar realityking avatar grncdr avatar eelco avatar mrjoelkemp avatar fatso83 avatar samfrances avatar nicolas6422 avatar codemonkey800 avatar joscha avatar mk0x9 avatar petehunt avatar timm-gs avatar nbeliard 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.