jsparser 2.0.1 jsparser: ^2.0.1 copied to clipboard
JavaScript parser originally written by Asger Feldthaus<asger.feldthaus@gmail.com>, upgarded to dart 2.4 by Anurag Vohra <anuragvohraec@gmail.com>
import 'package:jsparser/jsparser.dart';
import 'dart:io';
void main() {
new File('test.js').readAsString().then((String code) {
Program ast = parsejs(code, filename: 'test.js');
// Use the AST for something
});
}