0.0.1 • Published 2 years ago

@ponticus/escomplex v0.0.1

Weekly downloads
-
License
-
Repository
github
Last release
2 years ago

@ponticus/escomplex

@ponticus/escomplex provides next generation Javascript and Typescript complexity reports by utilizing babel parser w/ all plugins enabled to parse JS / TS source code feeding the rest of the AST / processing modules which are available separately. Please review the typhonjs-node-escomplex organization for all of the separate components which may be used independently if direct AST processing is required. typhonjs-escomplex simply provides a shim using babel parser to produce the AST.

Work is swiftly being finished.

More information forthcoming. This NPM module can be installed as a dependency in package.json as follows:

"dependencies": {
  "@ponticus/escomplex": "^0.1.0"
}

An example follows:

import escomplex from '@ponticus/escomplex';

const source = "<some JS source code>";

const report = escomplex.analyzeModule(source);