static-analysis
is Performs Static Analysis On JavaScript Programs To Build Dependency Trees.
yarn add -E static-analysis
The package is available by importing its default function:
import staticAnalysis from 'static-analysis'
Call this function to get the result you want.
Config
: Options for the program.
Name | Type | Description | Default |
---|---|---|---|
shouldRun | boolean | A boolean option. | true |
text* | string | A text to return. | - |
/* yarn example/ */
import staticAnalysis from 'static-analysis'
(async () => {
const res = await staticAnalysis({
text: 'example',
})
console.log(res)
})()
example
(c) Art Deco 2019