Name: webtask-analyzer
Owner: Auth0
Description: Perform static analysis on webtasks
Created: 2018-03-20 17:34:40.0
Updated: 2018-04-12 17:42:19.0
Pushed: 2018-04-12 17:42:17.0
Size: 9
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
t Analyzer = require('webtask-analyzer');
t analyzer = new Analyzer({
clusterUrl: '...',
containerName: '...',
token: '...',
t results = await analyzer.findDependenciesInCode('module.exports = ...');
rt interface AnalyzerOptions {
clusterUrl: string;
containerName: string;
token: string;
rt interface RequireNode {
type: 'global' | 'require' | 'require_dynamic';
spec: string;
start: number;
end: number;
resolved?: any;
rt class Analyzer {
constructor(options: AnalyzerOptions) {}
findDependenciesInCode(code: string): Promise<RequireNode[]> {}