ale_parser.js
Avid Log Exchange (ALE) Parser written in pure JavaScript for use in the browser or from Node.js
Examples
In Node.js
Here's a JavaScript example of reading a file and outputting the JSON data retrieved from the parser
var ale;fs;
In the Browser
Here's a CoffeeScript example of using <input>
, File, and FileReader
to send an ALE into the parser on an HTML5 web page to POST ALE as JSON
: @input = $'input#ale-input' @inputon 'change'@handle_ale : reader = = if etargetreadyState == FileReaderDONE ale = etargetresult $post "/ingest_ale" heading: aleheading column: alecolumn data: aledata @inputval'' readerreadAsTextevttargetfiles0