title: JavaScript library to read doc and docx on client
body: <p>I am searching for a JavaScript library, which can read <code>.doc</code> - and <code>.docx</code> - files. The focus is only on the text content. I am not interested in pictures, formulas or other special structures in MS-Word file.</p>
  
  <p>It would be great if the library works with to JavaScript FileReader as shown in the code below.</p>
  
  <pre><code>function readExcel(currfile) {
    var reader = new FileReader();
  
    reader.onload = (function (_file) {
        return function (e) {
            //here should the magic happen
        };
    })(currfile);
  
    reader.onabort = function (e) {
        alert('File read canceled');
    };
  
    reader.readAsBinaryString(currfile);
  }
  </code></pre>
  
  <p>I searched through the internet, but I could not get what I was looking for.</p>