auth0/webtask-analyzer

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

Homepage:

Size: 9

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Analyze webtask code

Usage
t Analyzer = require('webtask-analyzer');

t analyzer = new Analyzer({
clusterUrl: '...',
containerName: '...',
token: '...',


t results = await analyzer.findDependenciesInCode('module.exports = ...');
API
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[]> {}


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.