Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

babel-parser.js 328B

123456789101112131415
  1. #!/usr/bin/env node
  2. /* eslint no-var: 0 */
  3. var parser = require("..");
  4. var fs = require("fs");
  5. var filename = process.argv[2];
  6. if (!filename) {
  7. console.error("no filename specified");
  8. } else {
  9. var file = fs.readFileSync(filename, "utf8");
  10. var ast = parser.parse(file);
  11. console.log(JSON.stringify(ast, null, " "));
  12. }