UNPKG

shift-interpreter

Version:

Shift-interpreter is an experimental JavaScript meta-interpreter useful for reverse engineering and analysis. One notable difference from other projects is that shift-interpreter retains state over an entire script but can be fed expressions and statement

7 lines (6 loc) 335 B
import { Script } from 'shift-ast'; export declare function interpretSource(source: string, context?: {}): Promise<any>; export declare function interpretTree(tree: Script, context?: {}): Promise<any>; export default interpretSource; export declare const interpret: typeof interpretSource; export { Interpreter } from './interpreter';